2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Common: Use C++11 deleted functions for NonCopyable

This commit is contained in:
Yuri Kunde Schlesner 2015-05-06 01:56:18 -03:00
parent 1fee769aa0
commit 7a4b717772

View file

@ -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"