boost::asio::deadline_timer with std::chrono time values
I have an application that uses asio deadline timers. The rest of the application uses std::chrono constructs for its time values, and it feels awkward to use boost::posix_time for only the stuff that touches asio. I'd like to use std::chrono throughout the application if I can, for consistency, readability, etc. It seems to me that the answer would involve using the timer's template: typedef boost::asio::basic_deadline_timer<std::chrono::system_clock::time_point> my_deadline_timer_type; my_deadline_timer_type a_timer(io_service); Except this blows up badly at compile time...many lines of