VERY experimental Nintendo Switch 2 emulator
C++
common/scope_exit: Replace std::move with std::forward in ScopeExit()
Lioncash32e726414241
diff --git a/src/common/scope_exit.h b/src/common/scope_exit.hindex baf1f1c9e2..1176a72b19 100644--- a/src/common/scope_exit.h+++ b/src/common/scope_exit.h@@ -20,7 +20,7 @@ struct ScopeExitHelper {template <typename Func>ScopeExitHelper<Func> ScopeExit(Func&& func) {- return ScopeExitHelper<Func>(std::move(func));+ return ScopeExitHelper<Func>(std::forward<Func>(func));}} // namespace detail