Boost logo

Boost Users :

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

Ok..I want to avoid using other functions.

It is possible t copy the value of error in a lambda external variable?

     const boost::system::error_code myError;
     acceptor.async_accept(*socket,[&myError] (const
boost::system::error_code &error)
                                         myError = error; //???
                                         } );

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