Boost logo

Boost Users :

Subject: Re: [Boost-users] ASIO async_accept() and c++2011 lambas
From: Claude (clros_at_[hidden])
Date: 2011-07-27 05:18:55


But it is possible to use the "error" variable outside the lambda

I would like to get something like this:

async_accept(socket, [=] (const boost::system::error_code &error)
                                      { // });

if (!error)
 //here there are a valid connection

View this message in context:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at