THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/03/2011 at 14:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Is it possible to create an array of my own class using GeAutoDynamicArray<MyClass> myArray;
?
When I try it I get an error stating that there is no acceptable contructor for TYPE = MyClass
Here's the error:
\>c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_dynamicarray.h(708) : error C2512: 'MyClass' : no appropriate default constructor available
1> c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_dynamicarray.h(665) : while compiling class template member function 'Bool GeDynamicArray<TYPE>::ReScope(VLONG)'
1> with
1> [
1> TYPE=MyClass
1> ]
1> c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_dynamicarray.h(1238) : see reference to class template instantiation 'GeDynamicArray<TYPE>' being compiled
1> with
1> [
1> TYPE=MyClass
1> ]
Thanks,
Shawn