diff options
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/server/Task.hpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy index 614cc844..d4fc88ec 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,7 +3,6 @@ Checks: > -*avoid-c-arrays, -*magic-numbers, -*narrowing-conversions, - -*noexcept-move*, -*non-private-member-variables-in-classes, -*special-member-functions, -*uppercase-literal-suffix, diff --git a/src/server/Task.hpp b/src/server/Task.hpp index 19fd6cad..c76f33da 100644 --- a/src/server/Task.hpp +++ b/src/server/Task.hpp @@ -52,7 +52,7 @@ public: Task(const Task&) = delete; Task& operator=(const Task&) = delete; - Task(Task&& task) + Task(Task&& task) noexcept : _children(std::move(task._children)) , _block(task._block) , _mode(task._mode) @@ -61,7 +61,7 @@ public: , _done(task._done.load()) {} - Task& operator=(Task&& task) + Task& operator=(Task&& task) noexcept { _children = std::move(task._children); _block = task._block; |