It'd be less confusing and less messy to use a
std::array<ChildClass, SIZE> super_array;
and then return super_array from your getarray function.
Remember to use a compiler supporting C++0x/11 features.
It'd be less confusing and less messy to use a
std::array<ChildClass, SIZE> super_array;
and then return super_array from your getarray function.
Remember to use a compiler supporting C++0x/11 features.
Last edited by manasij7479; 08-07-2011 at 12:13 PM.