I read the boost asio http server example code (see http://www.boost.org/doc/libs/1_54_0/doc/html/boost_asio/example/cpp11/http/server/connection.cpp) and find the auto self(shared_from_this());
variable is been used in the capture scope ([this, self]
). But the self variable is not been used in the lambda function. Then what's the benefit of doing so?
30
votes