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:
JosJuice 2017-08-01 20:50:11 +02:00
parent a8606f5d13
commit b0ee8bd0a0
1 changed files with 3 additions and 0 deletions

View File

@ -13,4 +13,7 @@ protected:
NonCopyable(const NonCopyable&) = delete;
NonCopyable& operator=(const NonCopyable&) = delete;
NonCopyable(NonCopyable&&) = default;
NonCopyable& operator=(NonCopyable&&) = default;
};