You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /app/boost/include/boost/asio/experimental/coro.hpp:293,
from <source>:2:
/app/boost/include/boost/asio/experimental/impl/coro.hpp: In instantiation of 'auto boost::asio::experimental::detail::coro_promise_exchange<Yield, Input, Return>::yield_value(Yield&&) [with Yield = int; Input = int; Return = int]':
<source>:5:14: required from here
5 | co_yield 5;
| ^
/app/boost/include/boost/asio/experimental/impl/coro.hpp:414:54: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'std::remove_reference<int&>::type' {aka 'int'}
414 | std::exchange(awaited_from, noop_coroutine())};
| ^
Compiler returned: 1
I suspect it's a typo in coro_promise_exchange::yield_value() for the 3-type case:
I see a problem when I write something like (godbolt)
The error I get is:
I suspect it's a typo in
coro_promise_exchange::yield_value()
for the 3-type case:asio/asio/include/asio/experimental/impl/coro.hpp
Lines 409 to 422 in 62481a2
which ought not have a
std::move(input_)
, as in the 2-type case:asio/asio/include/asio/experimental/impl/coro.hpp
Lines 502 to 515 in 62481a2
The text was updated successfully, but these errors were encountered: