From: Wolfgang Bangerth Date: Mon, 13 Nov 2023 23:51:06 +0000 (-0700) Subject: Mark an expression as 'constexpr'. X-Git-Tag: relicensing~299^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16266%2Fhead;p=dealii.git Mark an expression as 'constexpr'. --- diff --git a/include/deal.II/base/geometry_info.h b/include/deal.II/base/geometry_info.h index 1927e7cce2..11205f1a9a 100644 --- a/include/deal.II/base/geometry_info.h +++ b/include/deal.II/base/geometry_info.h @@ -4425,9 +4425,9 @@ GeometryInfo<2>::child_cell_on_face(const RefinementCase<2> &ref_case, // this cell adjacent to the subface of a possibly // refined neighbor. this simplifies setting neighbor // information in execute_refinement. - const unsigned int - subcells[2][RefinementCase<2>::isotropic_refinement][faces_per_cell] - [max_children_per_face] = { + constexpr unsigned int + subcells[2][RefinementPossibilities<2>::isotropic_refinement] + [faces_per_cell][max_children_per_face] = { { // Normal orientation (face_flip = false) {{0, 0}, {1, 1}, {0, 1}, {0, 1}}, // cut_x