From ba18a665f1178d7348663188806e88c1cc403090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fritze?= <rene.fritze@wwu.de> Date: Thu, 6 Aug 2020 15:25:21 +0200 Subject: [PATCH] fix headercheck --- dune/xt/common/string_internal.hh | 1 + dune/xt/functions/inverse.hh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dune/xt/common/string_internal.hh b/dune/xt/common/string_internal.hh index 64c208aaa..52ab184f8 100644 --- a/dune/xt/common/string_internal.hh +++ b/dune/xt/common/string_internal.hh @@ -24,6 +24,7 @@ #include <boost/algorithm/string/trim.hpp> #include <boost/lexical_cast.hpp> #include <boost/numeric/conversion/cast.hpp> +#include <boost/algorithm/string/constants.hpp> #include <dune/xt/common/reenable_warnings.hh> #include <dune/xt/common/debug.hh> diff --git a/dune/xt/functions/inverse.hh b/dune/xt/functions/inverse.hh index 7ff5f40d8..dce0f5f2e 100644 --- a/dune/xt/functions/inverse.hh +++ b/dune/xt/functions/inverse.hh @@ -63,7 +63,7 @@ public: } return inverse_matrix; } else { - static_assert(false, "compute not available"); + static_assert(AlwaysFalse<FunctionType>::value, "compute not available"); } } }; // class InverseFunctionHelper @@ -234,7 +234,7 @@ auto inverse(ElementFunctionInterface<E, r, rC, R>& func, const int order) if constexpr (internal::InverseFunctionHelper<ElementFunctionInterface<E, r, rC, R>>::available) { return InverseElementFunction<ElementFunctionInterface<E, r, rC, R>>(func, order); } else { - static_assert(false, "No inverse implementation available"); + static_assert(AlwaysFalse<R>::value, "No inverse implementation available"); } } @@ -245,7 +245,7 @@ auto inverse(const FunctionInterface<d, r, rC, R>& func, const int order) if constexpr (internal::InverseFunctionHelper<FunctionInterface<d, r, rC, R>>::available) { return InverseFunction<FunctionInterface<d, r, rC, R>>(func, order); } else { - static_assert(false, "No inverse implementation available"); + static_assert(AlwaysFalse<R>::value, "No inverse implementation available"); } } @@ -256,7 +256,7 @@ auto inverse(const GridFunctionInterface<E, r, rC, R>& func, const int order) if constexpr (internal::InverseFunctionHelper<GridFunctionInterface<E, r, rC, R>>::available) { return InverseGridFunction<GridFunctionInterface<E, r, rC, R>>(func, order); } else { - static_assert(false, "No inverse implementation available"); + static_assert(AlwaysFalse<R>::value, "No inverse implementation available"); } } -- GitLab