From f34daf63df100a4295586ee86dba223e46679e4b Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 13 Aug 2024 14:47:30 -0600 Subject: [PATCH] std::uncaught_exceptions(): use > 0, not != 0. This is more consistent. --- source/base/hdf5.cc | 2 +- source/base/mpi.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5