Boost Users :
Subject: [Boost-users] [asio] wrap lambda async_receive call
From: Andrew Hundt (athundt_at_[hidden])
Date: 2015-03-17 21:23:10
In C++11 is there an easy way to use
boost::asio::io_service::strand::wrap() on a lambda function handling the
return of an async_receive call?
As noted in the docs (link below it looks like there has to be an
implementation of asio_handler_invoke but I'm not sure how that would work
for a lambda function. Looking through the C++11 examples I can't find any
examples of using a strand. Any help would be greatly appreciated.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net