copy array of classes or explicity call constructor
I have a dynamic array of classes (Buffer to be exact). When this array is full, I want to extend it. Unfortunately, since C++ has no equivalent to realloc() that works on classes, I have to allocate a new array and then copy everything and then delete the old array. Being not well trained in the ways of C++, I'm clueless on how to copy an array of classes. Does it work like copying an array of structs in C? The other way I could think of doing this is somehow explicitly calling the copy constructor of each new element.