From e234122e2787e3a0c0fc360d5f3111e23e8877d9 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Mon, 18 Sep 2023 10:14:57 -0600 Subject: [PATCH] Made return statement easier to read. Co-authored-by: Daniel Arndt --- source/fe/fe_hermite.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/fe/fe_hermite.cc b/source/fe/fe_hermite.cc index cbeb833938..1030b6fb5c 100644 --- a/source/fe/fe_hermite.cc +++ b/source/fe/fe_hermite.cc @@ -203,9 +203,11 @@ namespace internal hermite_face_lexicographic_to_hierarchic_numbering( const unsigned int regularity) { - return (dim > 1) ? hermite_lexicographic_to_hierarchic_numbering< - std::max(dim - 1, 1)>(regularity) : - std::vector(); + (void)regularity; + if constexpr (dim > 1) + return hermite_lexicographic_to_hierarchic_numbering(regularity); + else + return std::vector(); } -- 2.39.5