]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use Assert instead of static_assert 8705/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 6 Sep 2019 03:23:24 +0000 (23:23 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 6 Sep 2019 03:23:24 +0000 (23:23 -0400)
include/deal.II/base/utilities.h

index bdf6a13ee3e698be453b8e9105c04ff6fd6658fb..56b93386150d86a9af5562c43f1dcbf1b1045da9 100644 (file)
@@ -1032,9 +1032,10 @@ namespace Utilities
   inline T
   fixed_power(const T x)
   {
-    static_assert(
+    Assert(
       !std::is_integral<T>::value || (N >= 0),
-      "The non-type template parameter N must be a non-negative integer for integral type T");
+      ExcMessage(
+        "The non-type template parameter N must be a non-negative integer for integral type T"));
 
     if (N == 0)
       return T(1.);

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.