diff options
| author | JosJuice <josjuice@gmail.com> | 2017-08-01 20:50:11 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-08-01 20:50:11 +0200 |
| commit | b0ee8bd0a0f8ee81d710637e2926d3b7e021a3fc (patch) | |
| tree | 393e3fde41b2eec3a96e22ba2e52c5f76721e5dc /Source/Core | |
| parent | a8606f5d1341534c95470327d1b3f3cbde72f35f (diff) | |
NonCopyable: Allow moving
NonCopyable is only supposed to prevent classes from being copied,
not make it hard for classes to be moveable.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/NonCopyable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Common/NonCopyable.h b/Source/Core/Common/NonCopyable.h index 77233b108e..2325156d3d 100644 --- a/Source/Core/Common/NonCopyable.h +++ b/Source/Core/Common/NonCopyable.h @@ -13,4 +13,7 @@ protected: NonCopyable(const NonCopyable&) = delete; NonCopyable& operator=(const NonCopyable&) = delete; + + NonCopyable(NonCopyable&&) = default; + NonCopyable& operator=(NonCopyable&&) = default; }; |
