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: | 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();
Note:
See TracTickets
for help on using tickets.
This is by design.