From: David Wells Date: Tue, 13 Aug 2024 20:47:30 +0000 (-0600) Subject: std::uncaught_exceptions(): use > 0, not != 0. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17515%2Fhead;p=dealii.git std::uncaught_exceptions(): use > 0, not != 0. This is more consistent. --- diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 282ff7690a..1af74efbce 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -38,7 +38,7 @@ namespace HDF5 check_exception(const std::string &type, const std::string &name) { # ifdef DEAL_II_WITH_MPI - if (std::uncaught_exceptions() != 0) + if (std::uncaught_exceptions() > 0) { std::cerr << "---------------------------------------------------------\n" diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 2523a777d3..94200c48be 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -746,7 +746,7 @@ namespace Utilities check_exception() { #ifdef DEAL_II_WITH_MPI - if (std::uncaught_exceptions() != 0) + if (std::uncaught_exceptions() > 0) { std::cerr << "---------------------------------------------------------\n"