Opened 7 years ago

#11668 new Bugs

cpu_timer methods documented as noexcept, while in code they are not

Reported by: George Butnaru <geo.butnaru@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: timer
Version: Boost 1.59.0 Severity: Problem
Keywords: cpu_timer, auto_cpu_timer, noexcept, exceptions Cc:

Description

Hello,

I was trying to use cpu_timer in an environment which does not use exceptions. As documented, most of the methods are noexcept, but the code does not have noexcept and uses try catch, see libs/timer/src/cpu_timer.cpp , ~auto_cpu_timer . Please either fix the documentation, or the code to comply with the documentation. My preferred way to fix the issue is the latter way, or at least give the option for the user to not use exception (with BOOST_NO_EXCEPTIONS).

Thank you,

George Butnaru

Change History (0)

Note: See TracTickets for help on using tickets.