Opened 9 years ago

Closed 8 years ago

#9213 closed Feature Requests (wontfix)

Add move constructor and move assignment to boost::asio::io_service

Reported by: martin.desharnais@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: Cc:

Description

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();

Change History (1)

comment:1 by chris_kohlhoff, 8 years ago

Resolution: wontfix
Status: newclosed

This is by design.

Note: See TracTickets for help on using tickets.