I'm experementing new features of asio (using boost 1.81.0) and I noticed it's not possible to combine any_completion_handler with consign, as an exemple the following code doest not compile
auto cb = []() { };
auto buffer = std::make_shared<std::uint8_t>();
boost::asio::any_completion_handler<void()> handler_1 = cb; // OK
boost::asio::any_completion_handler<void()> handler_2 = boost::asio::consign(cb, buffer); // NOT OK
producting the error Type 'boost::asio::consign_t<(lambda at ...)>' does not provide a call operator
Hello!
I'm experementing new features of asio (using boost 1.81.0) and I noticed it's not possible to combine
any_completion_handler
withconsign
, as an exemple the following code doest not compileproducting the error
Type 'boost::asio::consign_t<(lambda at ...)>' does not provide a call operator
It would be great to be able to combine both!