Jun 11, 2005 #1 CosminU Programmer Jun 11, 2005 2 RO I am using the following code to create a bi-dimensional list : typedef CList<CString, CString&> MYTYPE; CList<MYTYPE, MYTYPE&> myList; But I get this : Error C2582: 'operator =' function is unavailable in 'class' What I'm doing wrong ? Regards, Cosmin Unguru
I am using the following code to create a bi-dimensional list : typedef CList<CString, CString&> MYTYPE; CList<MYTYPE, MYTYPE&> myList; But I get this : Error C2582: 'operator =' function is unavailable in 'class' What I'm doing wrong ? Regards, Cosmin Unguru
Jun 12, 2005 #2 PerFnurt Programmer Feb 25, 2003 972 SE >What I'm doing wrong ? CList doesnt have an assignment operator. Thus CList is not supposed to be an element of another CList. Use std::list instead. It makes more sense, behaves as expected and is part of the C++ standard. Code: #include <list> typedef std::list<CString> MyType; typedef std::list<MyType> MyList; /Per www.perfnurt.se Upvote 0 Downvote
>What I'm doing wrong ? CList doesnt have an assignment operator. Thus CList is not supposed to be an element of another CList. Use std::list instead. It makes more sense, behaves as expected and is part of the C++ standard. Code: #include <list> typedef std::list<CString> MyType; typedef std::list<MyType> MyList; /Per www.perfnurt.se