diff --git a/include/gsl/util b/include/gsl/util index 3e6466c..f853777 100644 --- a/include/gsl/util +++ b/include/gsl/util @@ -53,7 +53,11 @@ class final_action { public: explicit final_action(F f) : f_(std::move(f)) { } - ~final_action() noexcept { f_(); } + ~final_action() { f_(); } + + final_action(const final_action&) = default; + final_action& operator=(const final_action&) = default; + private: F f_; };