mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
Common: Move NonCopyable to its own header
This commit is contained in:
parent
bb927ad738
commit
1d42db2439
18 changed files with 39 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue