Fix for an auto return type

This commit is contained in:
Jeremy Rifkin 2025-02-20 21:47:36 -06:00
parent 9a2ae3c96f
commit 3a4da8ccf0
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -300,7 +300,7 @@ namespace detail {
};
template<typename F>
NODISCARD auto scope_exit(F&& f) {
NODISCARD auto scope_exit(F&& f) -> scope_guard<F> {
return scope_guard<F>(std::forward<F>(f));
}
}