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: http://boost.2283326.n4.nabble.com/ASIO-async-accept-and-c-2011-lambas-tp3697807p3698098.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