What's wrong with this code?
//declaration
...
...
While I'm not using this function everything ok.
compiler don't bark at me
but when I started to use it, the compliler shows error message.
//error message
...
error C2664: 'GetArrFromName' : cannot convert parameter 2 from 'class CArray<class CString,class CString>' to 'class CArray<class CString,class CString>'
No copy constructor available for class 'CArray<class CString,class CString>'
MyListNew.cpp
//declaration
Code:
GetArrFromName(CString name, CArray<CString,CString>arr);
Code:
//definition
void CMyClass::GetArrFromName(CString name, CArray<CString,CString>arr){
}
While I'm not using this function everything ok.
compiler don't bark at me
but when I started to use it, the compliler shows error message.
Code:
//using
CMyClass mymy;
CArray<CString,CStrin>arr;
CString name;
mymy.GetArrFromName(name,arr);
...
error C2664: 'GetArrFromName' : cannot convert parameter 2 from 'class CArray<class CString,class CString>' to 'class CArray<class CString,class CString>'
No copy constructor available for class 'CArray<class CString,class CString>'
MyListNew.cpp