summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/common.h10
-rw-r--r--src/common/common_types.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/common/common.h b/src/common/common.h
index d64635620..a4a403fb9 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -13,16 +13,6 @@
13 13
14#define STACKALIGN 14#define STACKALIGN
15 15
16// An inheritable class to disallow the copy constructor and operator= functions
17class NonCopyable {
18protected:
19 NonCopyable() = default;
20 ~NonCopyable() = default;
21
22 NonCopyable(NonCopyable&) = delete;
23 NonCopyable& operator=(NonCopyable&) = delete;
24};
25
26#include "common/assert.h" 16#include "common/assert.h"
27#include "common/logging/log.h" 17#include "common/logging/log.h"
28#include "common/common_types.h" 18#include "common/common_types.h"
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 1b453e7f5..5c004c5fa 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -73,6 +73,16 @@ union t64 {
73 u8 _u8[8]; ///< 8-bit unsigned char(s) 73 u8 _u8[8]; ///< 8-bit unsigned char(s)
74}; 74};
75 75
76// An inheritable class to disallow the copy constructor and operator= functions
77class NonCopyable {
78protected:
79 NonCopyable() = default;
80 ~NonCopyable() = default;
81
82 NonCopyable(NonCopyable&) = delete;
83 NonCopyable& operator=(NonCopyable&) = delete;
84};
85
76namespace Common { 86namespace Common {
77/// Rectangle data structure 87/// Rectangle data structure
78class Rect { 88class Rect {