NonCopyable: Allow moving
NonCopyable is only supposed to prevent classes from being copied, not make it hard for classes to be moveable.
This commit is contained in:
parent
a8606f5d13
commit
b0ee8bd0a0
|
@ -13,4 +13,7 @@ protected:
|
|||
|
||||
NonCopyable(const NonCopyable&) = delete;
|
||||
NonCopyable& operator=(const NonCopyable&) = delete;
|
||||
|
||||
NonCopyable(NonCopyable&&) = default;
|
||||
NonCopyable& operator=(NonCopyable&&) = default;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue