From ec4e681841056b718e65ad88c311c0485e781b1d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 5 Sep 2019 23:23:24 -0400 Subject: [PATCH] Use Assert instead of static_assert --- include/deal.II/base/utilities.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/utilities.h b/include/deal.II/base/utilities.h index bdf6a13ee3..56b9338615 100644 --- a/include/deal.II/base/utilities.h +++ b/include/deal.II/base/utilities.h @@ -1032,9 +1032,10 @@ namespace Utilities inline T fixed_power(const T x) { - static_assert( + Assert( !std::is_integral::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.); -- 2.39.5