18 Mar
2015
18 Mar
'15
1:23 a.m.
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. http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/overview/core/stran... Cheers! Andrew Hundt