Merge pull request #2990 from lioncash/noncopy
Common: Alter semantics of the NonCopyable mixin
This commit is contained in:
commit
81c07d4919
|
@ -60,12 +60,12 @@ extern const char *netplay_dolphin_ver;
|
||||||
class NonCopyable
|
class NonCopyable
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
NonCopyable() {}
|
constexpr NonCopyable() = default;
|
||||||
NonCopyable(const NonCopyable&&) {}
|
~NonCopyable() = default;
|
||||||
void operator=(const NonCopyable&&) {}
|
|
||||||
private:
|
private:
|
||||||
NonCopyable(NonCopyable&);
|
NonCopyable(NonCopyable&) = delete;
|
||||||
NonCopyable& operator=(NonCopyable& other);
|
NonCopyable& operator=(NonCopyable&) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
|
|
Loading…
Reference in New Issue