diff --git a/src/cpu_timer.cpp b/src/cpu_timer.cpp index 36e79bd..f9a5a4e 100644 --- a/src/cpu_timer.cpp +++ b/src/cpu_timer.cpp @@ -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 } }