asio-tr2 icon indicating copy to clipboard operation
asio-tr2 copied to clipboard

Change packaged_handler to aggregate packaged_task

Open chriskohlhoff opened this issue 10 years ago • 2 comments

Forward the required calls (i.e. not all members) to the packaged_task member

chriskohlhoff avatar Feb 25 '15 10:02 chriskohlhoff

Applied in 6d495682bf9f1452b746f19e01dfcf5b1613f004.

chriskohlhoff avatar Apr 12 '15 06:04 chriskohlhoff

Pre-Lenexa Summary

[async.package.handler]

Previously the packaged_handler class publicly derived from std::packaged_task. It did this to add an allocator_type typedef and get_allocator member function.

In Cologne, people expressed their dislike for the use of public inheritance and suggested that packaged_handler should instead aggregate packaged_task and forward the necessary member functions.

The change was included in revision 5.

chriskohlhoff avatar May 04 '15 12:05 chriskohlhoff