[LC++]How to define a static map member?

Vincent Penquerc'h 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;

Vincent Penquerc'h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20020402/e63fbbe8/attachment.htm 

More information about the tuxCPProgramming mailing list