1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-10-10 14:45:56 -05:00

Merge pull request #2391 from lioncash/scope

common/scope_exit: Replace std::move with std::forward in ScopeExit()
This commit is contained in:
bunnei
2019-04-12 21:52:35 -04:00
committed by GitHub

View File

@@ -20,7 +20,7 @@ struct ScopeExitHelper {
template <typename Func> template <typename Func>
ScopeExitHelper<Func> ScopeExit(Func&& func) { ScopeExitHelper<Func> ScopeExit(Func&& func) {
return ScopeExitHelper<Func>(std::move(func)); return ScopeExitHelper<Func>(std::forward<Func>(func));
} }
} // namespace detail } // namespace detail