From 328abe130308cb58e4806bd04d33499a8b200074 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Mon, 21 Oct 2024 00:51:58 +0200 Subject: [PATCH] fix(scope_exit): move, don't forward --- include/dwarfs/scope_exit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: