Re: [Boost-users] error: no matching function for call to ‘boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >::basic_stream_socket()’
You have to initialize _socket this way in your object constructor
initialization list:
class YourClass
{
YourClass(io_service &io) : _socket(io)
{}
tcp::socket _socket;
};