Move result into coro_handler.

This commit is contained in:
Christopher Kohlhoff 2015-02-15 11:09:17 +11:00
parent a8b694752e
commit 8d08c7e08e

View File

@ -49,14 +49,14 @@ namespace detail {
void operator()(T value)
{
*ec_ = asio::error_code();
*value_ = value;
*value_ = ASIO_MOVE_CAST(T)(value);
(*coro_)();
}
void operator()(asio::error_code ec, T value)
{
*ec_ = ec;
*value_ = value;
*value_ = ASIO_MOVE_CAST(T)(value);
(*coro_)();
}