Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3900: Request for support of "release" member function or assign without ownership transfer to asio socket
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-25 06:11:13
#3900: Request for support of "release" member function or assign without
ownership transfer to asio socket
----------------------------------+-----------------------------------------
Reporter: artyomtnk@⦠| Owner: chris_kohlhoff
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: asio
Version: Boost 1.42.0 | Severity: Problem
Resolution: fixed | Keywords:
----------------------------------+-----------------------------------------
Comment (by anonymous):
Another use case for this that presumably would be portable to windows as
well is having a tcp::socket object, exchanging some messages over it, and
then deciding to turn it into an SSL socket (I believe the SMTP protocol
does things like this).
In this case, the operator=(basic_socket && s) is ideal, however, it would
be nice to have this for current generation compilers too. maybe with a
signature like:
{{{
basic_socket& operator=(basic_socket& s);
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3900#comment:12> 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 : 2017-02-16 18:50:07 UTC