mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Common: Move NonCopyable to its own header
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user