From ef749bf26c439f3c3d51a47734a97cf9b0f83a1a Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 18 Aug 2014 00:22:55 +0300 Subject: [PATCH] fix assigning exception to future --- reactor.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactor.hh b/reactor.hh index b228a2a80f..e8b5e4e509 100644 --- a/reactor.hh +++ b/reactor.hh @@ -138,7 +138,7 @@ struct future_state { void set_exception(std::exception_ptr ex) { assert(_state == state::future); _state = state::exception; - new (&_u.ex) std::exception(ex); + new (&_u.ex) std::exception_ptr(ex); make_ready(); } T get() {