0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::ctx::future: Ensure value is moved out.

This commit is contained in:
Jason Volk 2019-08-26 13:10:12 -07:00
parent f073657b5a
commit 13e2d56850

View file

@ -240,7 +240,7 @@ ircd::ctx::future<T>::get()
if(bool(state().eptr))
std::rethrow_exception(state().eptr);
return state().val;
return std::move(state().val);
}
template<class T>