From 8d08c7e08e5d53a57f7799dda5ca3be55c1cf987 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Sun, 15 Feb 2015 11:09:17 +1100 Subject: [PATCH] Move result into coro_handler. --- asio/include/asio/impl/spawn.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asio/include/asio/impl/spawn.hpp b/asio/include/asio/impl/spawn.hpp index 89d614be..dbde057e 100644 --- a/asio/include/asio/impl/spawn.hpp +++ b/asio/include/asio/impl/spawn.hpp @@ -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_)(); }