From 40a189fcc838cd5b67f26f2dc83203dc52143605 Mon Sep 17 00:00:00 2001 From: Felix Petriconi Date: Wed, 6 Feb 2019 23:08:02 +0100 Subject: [PATCH] Fix #220 --- stlab/concurrency/utility.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stlab/concurrency/utility.hpp b/stlab/concurrency/utility.hpp index 821148923..18f39fca9 100644 --- a/stlab/concurrency/utility.hpp +++ b/stlab/concurrency/utility.hpp @@ -61,7 +61,7 @@ future> make_ready_future(T&& x, E executor) { auto p = package(std::decay_t)>( std::move(executor), [](auto&& x) { return std::forward(x); }); p.first(std::forward(x)); - return p.second; + return std::move(p.second); } template @@ -78,7 +78,7 @@ future make_exceptional_future(std::exception_ptr error, E executor) { return std::forward(x); }); p.first(T{}); - return p.second; + return std::move(p.second); } template