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: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2010-02-18 11:00:40


On Thu, Feb 18, 2010 at 8:59 AM, Jonathan Franklin
<franklin.jonathan_at_[hidden]> wrote:
> On Thu, Feb 18, 2010 at 8:49 AM, David Kaplan <davkaplan_at_[hidden]> wrote:
>> I tied _socket(ioService), still no luck....
>
> This is presumably a member variable, so you must do it in the
> constructor initializer list.  I have written many classes that have
> an asio::socket member variable, so I know it works.

Note that if you need to delay the creation of the socket, you might
consider using a smart pointer to a socket.

Jon


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