boost async_wait and adding “this” in a bind [duplicate]
问题 This question already has an answer here : How to use boost bind with a member function (1 answer) Closed 4 years ago . In this example of using a boost asynchronous timer inside a class, the author added "this" pointer to the bind function inside m_timer.async_wait method. That's strange because the handler is a public method (message(void)) that takes no argument, so why the hell using boost::bind and especially the pointer "this" ? class handler { public: handler(boost::asio::io_service&