The boost asio function deadline_timer async_waitaccepts a form handler:
void handler(const boost::system::error_code& error)
How can I define a handler that accepts const boost::system::error_code& erroras well as a type argument int?
boost::asio::deadline_timer t(io_service);
t.async_wait(handler); //I need the async_wait to take in handler which accepts argument boost::system::error_code& error and an int
void handler(int, const boost::system::error_code& error )//extra int argument
Thank.
source
share