From 4000c5c899c0ae58b8b851f9b66e1a2ac0fe2bff Mon Sep 17 00:00:00 2001 From: JoelStienlet Date: Fri, 6 Mar 2020 15:55:36 +0100 Subject: [PATCH] remove std::move in return : std::future can only be moved anyway (#336) Co-authored-by: Joel Stienlet --- src/g3log/future.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g3log/future.hpp b/src/g3log/future.hpp index ed50ef0..370f377 100644 --- a/src/g3log/future.hpp +++ b/src/g3log/future.hpp @@ -58,6 +58,6 @@ namespace g3 { std::future result = task.get_future(); worker->send(MoveOnCopy(std::move(task))); - return std::move(result); + return result; } } // end namespace g3