From 13e2d5685002389c1ae5e7678d4a64005848fc16 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 26 Aug 2019 13:10:12 -0700 Subject: [PATCH] ircd::ctx::future: Ensure value is moved out. --- include/ircd/ctx/future.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ircd/ctx/future.h b/include/ircd/ctx/future.h index 3aea34fb6..c913d514e 100644 --- a/include/ircd/ctx/future.h +++ b/include/ircd/ctx/future.h @@ -240,7 +240,7 @@ ircd::ctx::future::get() if(bool(state().eptr)) std::rethrow_exception(state().eptr); - return state().val; + return std::move(state().val); } template