I have managed to declare one deadline timer in a class.
class myTimerService
{
public:
boost::asio::io_service ioService;
myTimerService():t0(ioService){}
private:
boost::asio::deadline_timer t0;
};
so the construct is able to construct the t0. How do I modify it to have another deadline_timer t1. How would the construct look like for following?
class myTimerService
{
public:
boost::asio::io_service ioService;
myTimerService()-------????
private:
boost::asio::deadline_timer t0;
boost::asio::deadline_timer t1;
};