Fix for an auto return type
This commit is contained in:
parent
9a2ae3c96f
commit
3a4da8ccf0
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user