yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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
commit b42595fa6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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