Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum
Timestamp:
Jul 29, 2009, 6:26:22 PM (15 years ago)
Author:
rgrieder
Message:

Added Singleton class template. It doesn't spare much of the typing but at least it enforces that the singleton pointer's value is consistent (especially with exceptions being thrown).
Note that even if you're inheriting from Singleton<MyClass>, you still need to declare "static MyClass* singletonRef_s" to avoid linker problems.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.