From 422d642cf47c08711de41573aa2949fecefbb84e Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Fri, 6 Mar 2015 10:01:08 +0100 Subject: [PATCH] core: Add futurize::primise_type --- core/future.hh | 3 +++ 1 file changed, 3 insertions(+) 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.