Common: Move NonCopyable to its own header

This commit is contained in:
Lioncash
2015-09-26 16:13:54 -04:00
parent bb927ad738
commit 1d42db2439
18 changed files with 39 additions and 16 deletions

View File

@ -30,18 +30,6 @@ extern const char *netplay_dolphin_ver;
#define UNUSED
#endif
// An inheritable class to disallow the copy constructor and operator= functions
class NonCopyable
{
protected:
constexpr NonCopyable() = default;
~NonCopyable() = default;
private:
NonCopyable(NonCopyable&) = delete;
NonCopyable& operator=(NonCopyable&) = delete;
};
#if defined _WIN32
// Memory leak checks