Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bi-dimensional List in MFC

Status
Not open for further replies.

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
 
>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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top