inj*_*joy 24 c++ lambda boost boost-asio c++11
我阅读了boost asio http服务器示例代码(参见http://www.boost.org/doc/libs/1_54_0/doc/html/boost_asio/example/cpp11/http/server/connection.cpp)并找到auto self(shared_from_this());
变量是已在捕获范围([this, self]
)中使用.但自变量未在lambda函数中使用.那么这样做有什么好处?