diff --git a/core/future.hh b/core/future.hh index 2a9c69022a..25ee4a1287 100644 --- a/core/future.hh +++ b/core/future.hh @@ -362,16 +362,19 @@ struct futurize; template struct futurize { using type = future; + using promise_type = promise; }; template <> struct futurize { using type = future<>; + using promise_type = promise<>; }; template struct futurize> { using type = future; + using promise_type = promise; }; // Converts a type to a future type, if it isn't already.