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
commit a8e1fefd5f

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
}
}