]> https://gitweb.dealii.org/ - dealii.git/commitdiff
std::uncaught_exceptions(): use > 0, not != 0. 17515/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 13 Aug 2024 20:47:30 +0000 (14:47 -0600)
committerDavid Wells <drwells@email.unc.edu>
Tue, 13 Aug 2024 21:01:33 +0000 (15:01 -0600)
This is more consistent.

source/base/hdf5.cc
source/base/mpi.cc

index 282ff7690a33cde1ecd832ac9e57d5ab8e5f2adc..1af74efbcee34df6530f28c3772cf4ee14c475cd 100644 (file)
@@ -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"
index 2523a777d3445ebeadfd163cd58b8710fc0401ce..94200c48be229f6fa7e99744d469ab3d3f5ab892 100644 (file)
@@ -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"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.