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