Skip to content
Snippets Groups Projects
Unverified Commit b42595fa authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #2391 from lioncash/scope

common/scope_exit: Replace std::move with std::forward in ScopeExit()
parents 0faf7b17 b5696410
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment