From: Marc Fehling Date: Mon, 18 Sep 2023 16:14:57 +0000 (-0600) Subject: Made return statement easier to read. X-Git-Tag: relicensing~494^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e234122e2787e3a0c0fc360d5f3111e23e8877d9;p=dealii.git Made return statement easier to read. Co-authored-by: Daniel Arndt --- 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(); }