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 committed 2017-08-01 20:50:11 +02:00
1 parent a8606f5d13
commit b0ee8bd0a0
1 file changed
+3
+3
View File
@@ -13,4 +13,7 @@ protected:
NonCopyable(const NonCopyable&) = delete;
NonCopyable& operator=(const NonCopyable&) = delete;
NonCopyable(NonCopyable&&) = default;
NonCopyable& operator=(NonCopyable&&) = default;
};