Skip to content

Commit

Permalink
Merge pull request #235 from FelixPetriconi/Fix220
Browse files Browse the repository at this point in the history
Fix #220
  • Loading branch information
FelixPetriconi authored Feb 7, 2019
2 parents 55503ab + 40a189f commit 995fd92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stlab/concurrency/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ future<std::decay_t<T>> make_ready_future(T&& x, E executor) {
auto p = package<std::decay_t<T>(std::decay_t<T>)>(
std::move(executor), [](auto&& x) { return std::forward<decltype(x)>(x); });
p.first(std::forward<T>(x));
return p.second;
return std::move(p.second);
}

template <typename E>
Expand All @@ -78,7 +78,7 @@ future<T> make_exceptional_future(std::exception_ptr error, E executor) {
return std::forward<decltype(x)>(x);
});
p.first(T{});
return p.second;
return std::move(p.second);
}

template <typename E>
Expand Down

0 comments on commit 995fd92

Please sign in to comment.