This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Static set member.


This is a general C++ question, not specific to gcc - probably should be directed to another forum.

You tried defining your static member using:
"std::set<Thing *,ThingComp> ThingManager::thingSet();"

I believe you need to simply use the following (no parens for ctor call - they are implied):
"std::set<Thing *,ThingComp> ThingManager::thingSet;"





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]