| commit | d35db94c127698310ea9a2040f8ff9f4732a6fb0 | [log] [tgz] |
|---|---|---|
| author | Christopher Kohlhoff <chris@kohlhoff.com> | Fri Feb 13 23:57:08 2015 +1100 |
| committer | Christopher Kohlhoff <chris@kohlhoff.com> | Sun Feb 15 10:52:43 2015 +1100 |
| tree | 5ac2a6a343026771880cd80990d58693fbab2d22 | |
| parent | c13d36c1c5a166d684ed448a7d3bc0d5c7af732e [diff] |
Move result of a yield_context operation.
diff --git a/asio/include/asio/impl/spawn.hpp b/asio/include/asio/impl/spawn.hpp index a6c5561..89d614b 100644 --- a/asio/include/asio/impl/spawn.hpp +++ b/asio/include/asio/impl/spawn.hpp
@@ -187,7 +187,7 @@ handler_.coro_.reset(); // Must not hold shared_ptr to coro while suspended. ca_(); if (!out_ec_ && ec_) throw asio::system_error(ec_); - return value_; + return ASIO_MOVE_CAST(type)(value_); } private: