diff --git a/src/utils/utils.hpp b/src/utils/utils.hpp index 50ab134..faf576b 100644 --- a/src/utils/utils.hpp +++ b/src/utils/utils.hpp @@ -300,7 +300,7 @@ namespace detail { }; template - NODISCARD auto scope_exit(F&& f) { + NODISCARD auto scope_exit(F&& f) -> scope_guard { return scope_guard(std::forward(f)); } }