|
|
@ -14,15 +14,13 @@
|
|
|
|
#define STACKALIGN
|
|
|
|
#define STACKALIGN
|
|
|
|
|
|
|
|
|
|
|
|
// An inheritable class to disallow the copy constructor and operator= functions
|
|
|
|
// An inheritable class to disallow the copy constructor and operator= functions
|
|
|
|
class NonCopyable
|
|
|
|
class NonCopyable {
|
|
|
|
{
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
NonCopyable() {}
|
|
|
|
NonCopyable() = default;
|
|
|
|
NonCopyable(const NonCopyable&&) {}
|
|
|
|
~NonCopyable() = default;
|
|
|
|
void operator=(const NonCopyable&&) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
NonCopyable(NonCopyable&) = delete;
|
|
|
|
NonCopyable(NonCopyable&);
|
|
|
|
NonCopyable& operator=(NonCopyable&) = delete;
|
|
|
|
NonCopyable& operator=(NonCopyable& other);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/assert.h"
|
|
|
|