Opened 5 years ago

Last modified 5 years ago

#13473 new Bugs

asio::basic_repeating_timer broken by 1.66.0

Reported by: Mike Haben <michael.haben@…> Owned by: chris_kohlhoff
Milestone: Boost 1.66.0 Component: asio
Version: Boost 1.66.0 Severity: Regression
Keywords: deadline_timer_service Cc:

Description

The third-party header basic_repeating_timer.hpp, "Developed 2007 by David C. Wyles (http:///www.codegorilla.co.uk)", no longer compiles with boost::asio 1.66.0:

In file included from test1.cpp:1:0: ../Third_Party_Code/basic_repeating_timer.hpp:31:52: error: ‘deadline_timer_service’ in namespace ‘boost::asio’ does not name a template type

typename TimerService = boost::asio::deadline_timer_service<Time, TimeTraits> >

../Third_Party_Code/basic_repeating_timer.hpp:31:74: error: expected ‘>’ before ‘<’ token

typename TimerService = boost::asio::deadline_timer_service<Time, TimeTraits> >

In file included from test1.cpp:1:0: ../Third_Party_Code/basic_repeating_timer.hpp:205:59: error: template argument 3 is invalid

typedef basic_repeating_timer<boost::posix_time::ptime> repeating_timer;

Attachments (1)

basic_repeating_timer.hpp (7.3 KB ) - added by Mike Haben <michael.haben@…> 5 years ago.
Third-party boost::asio repeating timer

Download all attachments as: .zip

Change History (2)

by Mike Haben <michael.haben@…>, 5 years ago

Attachment: basic_repeating_timer.hpp added

Third-party boost::asio repeating timer

comment:1 by Mike Haben <michael.haben@…>, 5 years ago

There are a few different (re-)implementations of a repeating timer using boost::asio (e.g. https://gist.github.com/NicolaBernini/13c82b45ae283911eeeb) on the web, each with caveats and suggestions for improvement - please could a "best and final" implementation be added to boost::asio itself?

thanks, Mike H.

Note: See TracTickets for help on using tickets.