| commit | 8d08c7e08e5d53a57f7799dda5ca3be55c1cf987 | [log] [tgz] |
|---|---|---|
| author | Christopher Kohlhoff <chris@kohlhoff.com> | Sun Feb 15 11:09:17 2015 +1100 |
| committer | Christopher Kohlhoff <chris@kohlhoff.com> | Sun Feb 15 11:09:17 2015 +1100 |
| tree | 71769aa4e9186117b4b08b4d202727bc01713b25 | |
| parent | a8b694752eb1666f24d75803d332f0c228146ad8 [diff] |
Move result into coro_handler.
diff --git a/asio/include/asio/impl/spawn.hpp b/asio/include/asio/impl/spawn.hpp index 89d614b..dbde057 100644 --- a/asio/include/asio/impl/spawn.hpp +++ b/asio/include/asio/impl/spawn.hpp
@@ -49,14 +49,14 @@ 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_)(); }