]> https://gitweb.dealii.org/ - dealii.git/commitdiff
base/exceptions.h: remove DEAL_II_CXX23_ASSUME from Assert macro
authorMatthias Maier <tamiko@43-1.org>
Sun, 21 Jan 2024 20:53:02 +0000 (14:53 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 21 Jan 2024 21:31:02 +0000 (15:31 -0600)
include/deal.II/base/exceptions.h

index ea95ca2d850f79b55b2c9af8511860490a52870e..740bf3c3a2b591e40833aedf33bdc18d828ea7fd 100644 (file)
@@ -1637,7 +1637,11 @@ namespace deal_II_exceptions
 #    endif /*ifdef KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST*/
 #  endif   /*KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST*/
 #else      /*ifdef DEBUG*/
-#  define Assert(cond, exc) DEAL_II_CXX23_ASSUME(cond)
+#  define Assert(cond, exc) \
+    do                      \
+      {                     \
+      }                     \
+    while (false)
 #endif /*ifdef DEBUG*/
 
 
@@ -1689,7 +1693,11 @@ namespace deal_II_exceptions
       while (false)
 #  endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #else
-#  define AssertNothrow(cond, exc) DEAL_II_CXX23_ASSUME(cond)
+#  define AssertNothrow(cond, exc) \
+    do                             \
+      {                            \
+      }                            \
+    while (false)
 #endif
 
 /**

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.