Re: [Boost-bugs] [Boost C++ Libraries] #9000: asio::buffered_stream and family missing rvalue-move support

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9000: asio::buffered_stream and family missing rvalue-move support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-21 07:47:43


#9000: asio::buffered_stream and family missing rvalue-move support
-------------------------------+-------------------------------
  Reporter: vinnie.falco@… | Owner: chris_kohlhoff
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.54.0 | Severity: Optimization
Resolution: | Keywords: rvalue references
-------------------------------+-------------------------------

Comment (by vinnie.falco@…):

 Let me also add that the use of '''detail::bind_handler''' is obsolete, at
 least in 1.54. It would be preferable to write:

 {{{
 get_io_service ().wrap (BOOST_ASIO_MOVE_CAST(ReadHandler)(handler)
 (boost::system::error_code(), 0);
 }}}

 Furthermore, the return value of calling the functor returned by
 [b]io_service::wrap[/b] should be returned, as it could be a
 '''BOOST_ASIO_INITFN_RESULT_TYPE''':

 {{{
 return get_io_service ().wrap (BOOST_ASIO_MOVE_CAST(ReadHandler)(handler)
 (boost::system::error_code(), 0);
 }}}

 But amending '''asio::buffered_*_stream''' to support future returns is
 the subject of another ticket...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9000#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 : 2017-02-16 18:50:13 UTC