Restored copyability to final_action

This commit is contained in:
Herb Sutter 2021-02-24 16:08:02 -08:00
parent 4cd8873d3e
commit 39e956b9b1

View File

@ -54,10 +54,6 @@ class final_action
public: public:
explicit final_action(F f) : f_(std::move(f)) { } explicit final_action(F f) : f_(std::move(f)) { }
~final_action() noexcept { f_(); } ~final_action() noexcept { f_(); }
final_action(const final_action&) = delete;
final_action& operator=(const final_action&) = delete;
private: private:
F f_; F f_;
}; };