This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Static set member.
- From: "Young, Michael" <Michael dot Young at paetec dot com>
- To: "Smith-Rowland, Edward M" <ESmith-rowland at alionscience dot com>, <gcc-help at gcc dot gnu dot org>, <3dw4rd at verizon dot net>
- Date: Tue, 29 Aug 2006 19:03:16 -0400
- Subject: 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;"