diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-13 03:52:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 03:52:35 +0200 |
commit | b42595fa6be5087ccfb581cb15518836b5740cef (patch) | |
tree | 7832c439a79f4cca493a257bd1ba6bde61740b10 | |
parent | Merge pull request #2392 from lioncash/swap (diff) | |
parent | common/scope_exit: Replace std::move with std::forward in ScopeExit() (diff) | |
download | yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.gz yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.bz2 yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.lz yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.xz yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.tar.zst yuzu-b42595fa6be5087ccfb581cb15518836b5740cef.zip |
-rw-r--r-- | src/common/scope_exit.h | 2 |
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 { template <typename Func> ScopeExitHelper<Func> ScopeExit(Func&& func) { - return ScopeExitHelper<Func>(std::move(func)); + return ScopeExitHelper<Func>(std::forward<Func>(func)); } } // namespace detail |