diff --git a/core/future.hh b/core/future.hh index 4b404d0b18..d5dbb8a0a6 100644 --- a/core/future.hh +++ b/core/future.hh @@ -227,7 +227,7 @@ struct future_state { } using get0_return_type = std::tuple_element_t<0, std::tuple>; static get0_return_type get0(std::tuple&& x) { - return std::get<0>(x); + return std::get<0>(std::move(x)); } void forward_to(promise& pr) noexcept { assert(_state != state::future);