diff options
Diffstat (limited to 'include/util/NonCopyable.hpp')
-rwxr-xr-x | include/util/NonCopyable.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/util/NonCopyable.hpp b/include/util/NonCopyable.hpp new file mode 100755 index 0000000..44d1a93 --- /dev/null +++ b/include/util/NonCopyable.hpp @@ -0,0 +1,24 @@ +#ifndef __NONCOPYABLE_H +#define __NONCOPYABLE_H + +#include "Exportable.hpp" + +namespace __dont_touch +{ + +class SINGLETON_EXPORT noncopyable +{ + protected: + noncopyable( ) { } + ~noncopyable( ) { } + + private: + noncopyable( const noncopyable & ); + const noncopyable & operator=( const noncopyable & ); +}; + +} + +typedef __dont_touch::noncopyable noncopyable; + +#endif |