diff options
author | Max Horn | 2007-03-17 10:36:14 +0000 |
---|---|---|
committer | Max Horn | 2007-03-17 10:36:14 +0000 |
commit | 97514214349ed236c54fa6a91a0937b9c6073aab (patch) | |
tree | 0d1034f07270c91d629bdd5b62ff81f1bb2a20e8 /common/singleton.h | |
parent | c1f4dbda7794fbc174668def400cbfe315f71f51 (diff) | |
download | scummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.tar.gz scummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.tar.bz2 scummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.zip |
Added class NonCopyable, and made various things derive from it
svn-id: r26163
Diffstat (limited to 'common/singleton.h')
-rw-r--r-- | common/singleton.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/singleton.h b/common/singleton.h index 75acb9e668..5e72e72230 100644 --- a/common/singleton.h +++ b/common/singleton.h @@ -24,14 +24,15 @@ #ifndef COMMON_SINGLETON_H #define COMMON_SINGLETON_H +#include "common/noncopyable.h" + namespace Common { /** * Generic template base class for implementing the singleton design pattern. */ template <class T> -class Singleton -{ +class Singleton : NonCopyable { private: Singleton<T>(const Singleton<T>&); Singleton<T>& operator= (const Singleton<T>&); |