Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tpie/fractional_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void fractional_subindicator::done() {

fractional_subindicator::~fractional_subindicator() {
#ifndef TPIE_NDEBUG
if (!m_init_called && m_fraction > 0.00001 && !std::uncaught_exception()) {
if (!m_init_called && m_fraction > 0.00001 && !std::uncaught_exceptions()) {
std::stringstream s;
if (!m_stat.empty()) {
s << "A fractional_subindicator for ``" << m_stat << "'' was assigned a non-zero fraction but never initialized." << std::endl;
Expand Down Expand Up @@ -323,7 +323,7 @@ void fractional_progress::done() {

fractional_progress::~fractional_progress() {
#ifndef TPIE_NDEBUG
if (m_init_called && !m_done_called && !std::uncaught_exception()) {
if (m_init_called && !m_done_called && !std::uncaught_exceptions()) {
std::stringstream s;
s << "A fractional_progress was destructed without done being called." << std::endl;
TP_LOG_FATAL(s.str());
Expand Down
2 changes: 1 addition & 1 deletion tpie/progress_indicator_subindicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void progress_indicator_subindicator::setup(progress_indicator_base * parent,

#ifndef TPIE_NDEBUG
progress_indicator_subindicator::~progress_indicator_subindicator() {
if (m_init_called && !m_done_called && !std::uncaught_exception()) {
if (m_init_called && !m_done_called && !std::uncaught_exceptions()) {
std::stringstream s;
s << "A progress_indicator_subindicator was destructed without done being called." << std::endl;
TP_LOG_FATAL(s.str());
Expand Down