19 Feb
2010
19 Feb
'10
9:06 a.m.
But that means that I need to pass io_service to the class and I can't
initialize my io service in the class itself??
On 18 February 2010 18:02, Igor R
I tied _socket(ioService), still no luck....
You have to initialize _socket this way in your object constructor initialization list:
class YourClass { YourClass(io_service &io) : _socket(io) {}
tcp::socket _socket; }; _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users