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
// ws is a beast::websocket::stream, request is an http::request<http::string_body>
co_await ws.async_accept(request, as_tuple(use_op));
Leaves ws in an invalid state by moving the websocket stream's implementation, which is a shared_ptr passed by lvalue reference to asio::async_initiate.
This statement
Leaves
ws
in an invalid state by moving the websocket stream's implementation, which is a shared_ptr passed by lvalue reference toasio::async_initiate
.The problem is in
op.hpp
, within these lines:This decay will end up moving lvalue references. Comparing this to other Asio's completion tokens, this should be:
With this change, the code works.
The text was updated successfully, but these errors were encountered: