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


Thanks!

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

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: http://boost.2283326.n4.nabble.com/ASIO-async-accept-and-c-2011-lambas-tp3697807p3697950.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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