From c76d213c600e2df393f97ed3c093d95fc293f404 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 29 Jan 2024 11:49:42 -0700 Subject: [PATCH] Silence a warning. --- include/deal.II/cgal/utilities.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/deal.II/cgal/utilities.h b/include/deal.II/cgal/utilities.h index 337eb3a09d..08524f7578 100644 --- a/include/deal.II/cgal/utilities.h +++ b/include/deal.II/cgal/utilities.h @@ -610,9 +610,10 @@ namespace CGALWrappers resort_dealii_vertices_to_cgal_order(const unsigned int structdim, std::vector> &vertices) { - if (ReferenceCell::n_vertices_to_type(structdim, vertices.size()) == - ReferenceCells::Quadrilateral) - std::swap(vertices[2], vertices[3]); + if constexpr (spacedim == 2) + if (ReferenceCell::n_vertices_to_type(structdim, vertices.size()) == + ReferenceCells::Quadrilateral) + std::swap(vertices[2], vertices[3]); } -- 2.39.5