From 3a4da8ccf026cb46b64b6b2aef96c3255304076f Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:47:36 -0600 Subject: [PATCH] Fix for an auto return type --- src/utils/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }