[LC++]How to define a static map member?
Vincent.Penquerch at artworks.co.uk
Tue Apr 2 21:51:04 UTC 2002
> I am trying to have get a static member of a class to be of type
> map<const string, pointer*>.
> What is the correct way for doing it?
Your way is correct, but you haven't defined the variable.
In one of your cpp files, add:
map<const string,pointer*> category::allCategories;
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the tuxCPProgramming