There is inconsistency between this example and async_read manual . According to the manual
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The resulting type from
boost::bindstill meets the requirements of ReadHandler. Boost.Bind‘s documentation states that extra arguments are silently ignored.For example, in the internals of Boost.Asio, the ReadHandler call chain may look something like:
For a better illustration and explanation of
bind, consider reading this blog entry. One of its illustration specifically shows the case of surplus arguments.