How to Nest CArrays in Visual C++.NET
Posted on 2004-10-12
From an earlier discussion (using VC++ 6) I was told that in Visual C++.NET we could create nested CArrays without having to create a copy constructor
But in the following test I still get the error
error C2664: 'CArray<TYPE,ARG_TYPE>::Add' : cannot convert parameter 1 from 'ANG1' to 'ANG1'
No copy constructor available for class 'ANG1' or constructor attempts to perform illegal conversion to non-__gc reference
Howdo we nest CArrays in Visual C++.NET??
CArray <double,double> dAngs1;
CArray <ANG1,ANG1> dAngs2;
double dAng = 1.0;