From 7acf11c8519733eb73b9e5e8edca98a4d95d97ac Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 17 May 2017 20:12:36 +0100 Subject: [PATCH] Add missing std::move in on_scope_end implementation --- src/utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.hh b/src/utils.hh index 516d530c..b56d825f 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -76,7 +76,7 @@ private: template OnScopeEnd on_scope_end(T t) { - return OnScopeEnd(t); + return OnScopeEnd{std::move(t)}; } // *** Misc helper functions ***