lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Wesley Smith wrote:

In one of my classes bound as userdata I have a static std::map defined as follows

class A{
 map<int, A*> allocated;
};
Maybe it is typo, but allocated is not static member of A.

You meant:

class A{
static map<int, A*> allocated;
};

?


--
e.v.e