Fixing typo in move constructor implementation that resulted in compile error during tests.

This commit is contained in:
john-lynch 2015-09-29 00:00:21 -05:00
parent 422e7164d5
commit 1d11cd1ed1

View File

@ -52,7 +52,7 @@ class Final_act
public: public:
explicit Final_act(F f) : f_(std::move(f)), invoke_(true) {} explicit Final_act(F f) : f_(std::move(f)), invoke_(true) {}
Final_act(Final_act&& other) : f_(std::move(other.f_)), invoke_(true) { other._invoke = false; } Final_act(Final_act&& other) : f_(std::move(other.f_)), invoke_(true) { other.invoke_ = false; }
Final_act(const Final_act&) = delete; Final_act(const Final_act&) = delete;
Final_act& operator=(const Final_act&) = delete; Final_act& operator=(const Final_act&) = delete;