diff --git a/include/dwarfs/scope_exit.h b/include/dwarfs/scope_exit.h index 30fc74e1..4291dd9d 100644 --- a/include/dwarfs/scope_exit.h +++ b/include/dwarfs/scope_exit.h @@ -29,7 +29,7 @@ template class scope_exit { public: explicit scope_exit(F&& f) - : f_{std::forward(f)} {} + : f_{std::move(f)} {} ~scope_exit() { f_(); } private: