Quote Originally Posted by laserlight View Post
Granted, since you are creating an array of char, malloc() will work, but it is walking a tight rope to use malloc() in C++ since you could accidentally use it for a non-POD type.
I don't think it's an array of char that's being created, but an array of CShape. That sounds like it's non-POD, making the malloc() "solution" incorrect.

Regards,

Paul McKenzie