From: Wolfgang Bangerth Date: Mon, 29 Jan 2024 18:49:42 +0000 (-0700) Subject: Silence a warning. X-Git-Tag: relicensing~100^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76d213c600e2df393f97ed3c093d95fc293f404;p=dealii.git Silence a warning. --- 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]); }