Re: [Boost-bugs] [Boost C++ Libraries] #13477: Initializing boost::asio socket after constructor failed

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13477: Initializing boost::asio socket after constructor failed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-05-15 03:17:49


#13477: Initializing boost::asio socket after constructor failed
-------------------------+-------------------------------------------------
  Reporter: | Owner: chris_kohlhoff
  nguyen.tnhoang@… |
      Type: Bugs | Status: new
 Milestone: To Be | Component: asio
  Determined |
   Version: Boost | Severity: Showstopper
  1.66.0 | Keywords: c++ asio boost shared_ptr
Resolution: | boost::ref
-------------------------+-------------------------------------------------

Comment (by Krishna):

 I have the same issue. I want to initialize udp socket in my class
 constructor

 -----------------------------------------------------------------------
    server_udp_socket = boost::asio::ip::udp::socket(*my_io_service,
                                                      server_endpoint);
 -----------------------------------------------------------------------

 I am seeing the same issue. Is there a solution to this issue, except
 using initializers ?

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13477#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-05-15 03:23:31 UTC