Fix moving a final_act twice

This commit is contained in:
Treb Connell
2015-10-02 15:58:23 -07:00
parent df88352c1d
commit b8ec73a179
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class final_act
public:
explicit final_act(F f) noexcept : f_(std::move(f)), invoke_(true) {}
final_act(final_act&& other) noexcept : f_(std::move(other.f_)), invoke_(true) { other.invoke_ = false; }
final_act(final_act&& other) noexcept : f_(std::move(other.f_)), invoke_(other.invoke_) { other.invoke_ = false; }
final_act(const final_act&) = delete;
final_act& operator=(const final_act&) = delete;