Add missing std::move in on_scope_end implementation
This commit is contained in:
parent
0229baf6ba
commit
7acf11c851
|
@ -76,7 +76,7 @@ private:
|
|||
template<typename T>
|
||||
OnScopeEnd<T> on_scope_end(T t)
|
||||
{
|
||||
return OnScopeEnd<T>(t);
|
||||
return OnScopeEnd<T>{std::move(t)};
|
||||
}
|
||||
|
||||
// *** Misc helper functions ***
|
||||
|
|
Loading…
Reference in New Issue
Block a user