15 Sep
2010
15 Sep
'10
11:26 a.m.
<...>
ftp_client_dtp(boost::asio::io_service& io_service) : work_io_service_(), work_resolver_(new boost::asio::ip::tcp::resolver(work_io_service_)), work_socket_(new boost::asio::ip::tcp::socket(work_io_service_)) ===>> { } <...> boost::scoped_ptrboost::asio::ip::tcp::resolver work_resolver_; boost::scoped_ptrboost::asio::ip::tcp::socket work_socket_;
boost::asio::io_service work_io_service_; <...>
Please, pay attention that member objects are initialized in the order of their definition. I.e., when you initialize work_resolver_ and work_socket_ you pass them uninitialized work_io_service_ as a parameter.