Alternative to missing method in last version of Boost asio library
问题 Some years ago, I wrote a email client using Boost asio library. There are a abstract class ICON with four subclasses. POP3conN to flat POP3 communications POP3conS to secure POP3 communications SMTPconN to flat SMTP communications SMTPconS to secure SMTP communications ICON has a member boost::asio::ip::tcp::socket socket_ and two virtual procedures, defined in echa subclass: void SMTPconN::run() { socket_.get_io_service().run(); } void SMTPconN::reset() { socket_.get_io_service().reset(); }