Boost.asio and asynchronous chain, unique_ptr?
问题 I am not deeply familiar with async programming and I have a question. My question is the following. Given the echo_server example here for C++11 in boost.asio: http://www.boost.org/doc/libs/1_60_0/doc/html/boost_asio/example/cpp11/spawn/echo_server.cpp I would like to know if the std::make_shared<session> can be replaced in C++14 with a std::unique_ptr<session> in C++14, avoiding the overhead of reference count. I am not sure since we have shared_from_this() but not something like unique