Boost logo

Boost Users :

Subject: 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()’
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-18 11:02:33


> 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 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