[Boost-bugs] [Boost C++ Libraries] #9213: Add move constructor and move assignment to boost::asio::io_service

Subject: [Boost-bugs] [Boost C++ Libraries] #9213: Add move constructor and move assignment to boost::asio::io_service
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-09 02:32:36


#9213: Add move constructor and move assignment to boost::asio::io_service
---------------------------------+----------------------------
 Reporter: martin.desharnais@… | Owner: chris_kohlhoff
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.54.0 | Severity: Cosmetic
 Keywords: |
---------------------------------+----------------------------
 With the inclusion of type inference in C++11, I got the habit to use it
 for every variable:


 {{{
 auto i0 = 10;
 auto i1 = int(10);
 auto i2 = foo();
 // etc.
 }}}

 Unfortunatly, this is not possible with boost::asio::io_service since it
 is noncopyable and does not provide move constructor and move assignment.

 {{{
 // error: use of deleted function
 â€˜boost::asio::io_service::io_service(const boost::asio::io_service&)’
 auto io_service = boost::asio::io_service();
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9213>
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:14 UTC