diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-06 04:05:02 -0300 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-06 23:45:05 -0300 |
commit | 6ad71c216b2d1112c96d621140c60b4e1b359811 (patch) | |
tree | dd0a12d5f3939ec4102ca92884659737814821ef | |
parent | 7a4b717772daf91819170caf32a71baa845c46ea (diff) |
Common: Move NonCopyable to common_types.h
-rw-r--r-- | src/common/common.h | 10 | ||||
-rw-r--r-- | src/common/common_types.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/common/common.h b/src/common/common.h index d64635620c..a4a403fb96 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -13,16 +13,6 @@ #define STACKALIGN -// An inheritable class to disallow the copy constructor and operator= functions -class NonCopyable { -protected: - NonCopyable() = default; - ~NonCopyable() = default; - - NonCopyable(NonCopyable&) = delete; - NonCopyable& operator=(NonCopyable&) = delete; -}; - #include "common/assert.h" #include "common/logging/log.h" #include "common/common_types.h" diff --git a/src/common/common_types.h b/src/common/common_types.h index 1b453e7f58..5c004c5fae 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -73,6 +73,16 @@ union t64 { u8 _u8[8]; ///< 8-bit unsigned char(s) }; +// An inheritable class to disallow the copy constructor and operator= functions +class NonCopyable { +protected: + NonCopyable() = default; + ~NonCopyable() = default; + + NonCopyable(NonCopyable&) = delete; + NonCopyable& operator=(NonCopyable&) = delete; +}; + namespace Common { /// Rectangle data structure class Rect { |