xoreos
0.0.5
|
Class and macro for implementing singletons. More...
#include <boost/noncopyable.hpp>
Go to the source code of this file.
Classes | |
class | Common::Singleton< T > |
Generic template base class for implementing the singleton design pattern. More... | |
Namespaces | |
Common | |
Macros | |
#define | DECLARE_SINGLETON(T) |
Note that you need to use this macro from the global namespace. More... | |
Class and macro for implementing singletons.
Definition in file singleton.h.
#define DECLARE_SINGLETON | ( | T | ) |
Note that you need to use this macro from the global namespace.
This is because C++ requires initial explicit specialization to be placed in the same namespace as the template. It has to be put in the global namespace to assure the correct namespace Common is referenced.
Definition at line 122 of file singleton.h.