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] |
There's still a problem with the template parameters. Let me give the relevant class one last try with escapes:
template<typename ObjectT=Dummy> class Singleton { static ObjectT* object; public: static ObjectT& Instance() { if (!object) object = new ObjectT(); return *object; } };
template<typename ObjectT> ObjectT* Singleton::object = 0;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |