mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-11 20:42:50 +00:00
Merge pull request #2391 from lioncash/scope
common/scope_exit: Replace std::move with std::forward in ScopeExit()
This commit is contained in:
commit
b42595fa6b
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue