From: Daniel Arndt Date: Fri, 6 Sep 2019 03:23:24 +0000 (-0400) Subject: Use Assert instead of static_assert X-Git-Tag: v9.2.0-rc1~1136^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8705%2Fhead;p=dealii.git Use Assert instead of static_assert --- 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.);