summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2019-04-12 21:52:35 -0400
committerGravatar GitHub2019-04-12 21:52:35 -0400
commitb42595fa6be5087ccfb581cb15518836b5740cef (patch)
tree7832c439a79f4cca493a257bd1ba6bde61740b10
parentMerge pull request #2392 from lioncash/swap (diff)
parentcommon/scope_exit: Replace std::move with std::forward in ScopeExit() (diff)
downloadyuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.gz
yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.xz
yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.zip
Merge pull request #2391 from lioncash/scope
common/scope_exit: Replace std::move with std::forward in ScopeExit()
-rw-r--r--src/common/scope_exit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/scope_exit.h b/src/common/scope_exit.h
index baf1f1c9e..1176a72b1 100644
--- a/src/common/scope_exit.h
+++ b/src/common/scope_exit.h
@@ -20,7 +20,7 @@ struct ScopeExitHelper {
20 20
21template <typename Func> 21template <typename Func>
22ScopeExitHelper<Func> ScopeExit(Func&& func) { 22ScopeExitHelper<Func> ScopeExit(Func&& func) {
23 return ScopeExitHelper<Func>(std::move(func)); 23 return ScopeExitHelper<Func>(std::forward<Func>(func));
24} 24}
25} // namespace detail 25} // namespace detail
26 26