And how can I write my own array class to not need a default constructor for its elements? Right now, when I do the new [] to allocate space, I need a default const
For me the std::vector was requiring a default constructor for my class (say T) because I was calling resize() method of the vector, despite I was only calling the method to shrink the vector, but never to grow.