How to iinitialize std::array with derived object without copying?
If I have these objects:
std::array – How can I create a fixed size class member of an object that can’t get default constructed
I’m building a container class for any type T
that needs to keep a list of T
that has length known at compile time. I’m struggling to find a data structure that can work well for this problem, as std::array
complains when I try to initialize my object in the body of my constructor.