Move result into coro_handler.
This commit is contained in:
parent
a8b694752e
commit
8d08c7e08e
@ -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_)();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user