Skip to content
Snippets Groups Projects
Commit 6ad71c21 authored by Yuri Kunde Schlesner's avatar Yuri Kunde Schlesner
Browse files

Common: Move NonCopyable to common_types.h

parent 7a4b7177
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment