2
0
mirror of https://github.com/boostorg/timer.git synced 2026-01-28 07:42:12 +00:00

Merge pull request #2 from jzmaddock/patch-1

Allow timer to be built with -fno-exceptions
This commit is contained in:
Beman Dawes
2017-10-23 08:44:38 -04:00
committed by GitHub

View File

@@ -251,13 +251,17 @@ namespace boost
if (!is_stopped())
{
stop(); // the sooner we stop(), the better
#ifndef BOOST_NO_EXCEPTIONS
try
{
#endif
report();
#ifndef BOOST_NO_EXCEPTIONS
}
catch (...) // eat any exceptions
{
}
#endif
}
}