]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CGAL: use dealii's constexpr Utilities::pow instead of std::pow 14320/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 28 Sep 2022 03:02:40 +0000 (22:02 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 28 Sep 2022 03:02:40 +0000 (22:02 -0500)
Fixes #14319

source/cgal/intersections.cc

index a9d189084c92d46f326d84a52bcf625ba618a62d..0ad7918301d716d525e630eddc5070ffbcf1b710 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef DEAL_II_WITH_CGAL
 
 #  include <deal.II/base/quadrature_lib.h>
+#  include <deal.II/base/utilities.h>
 
 #  include <deal.II/fe/mapping.h>
 
@@ -716,19 +717,19 @@ namespace CGALWrappers
            ExcNotImplemented());
 
     const auto vertices0 =
-      CGALWrappers::get_vertices_in_cgal_order<int(std::pow(2, dim0))>(
+      CGALWrappers::get_vertices_in_cgal_order<Utilities::pow(2, dim0)>(
         cell0, mapping0);
     const auto vertices1 =
-      CGALWrappers::get_vertices_in_cgal_order<int(std::pow(2, dim1))>(
+      CGALWrappers::get_vertices_in_cgal_order<Utilities::pow(2, dim1)>(
         cell1, mapping1);
 
     return compute_intersection_of_cells<dim0,
                                          dim1,
                                          spacedim,
-                                         int(std::pow(2, dim0)),
-                                         int(std::pow(2, dim1))>(vertices0,
-                                                                 vertices1,
-                                                                 tol);
+                                         Utilities::pow(2, dim0),
+                                         Utilities::pow(2, dim1)>(vertices0,
+                                                                  vertices1,
+                                                                  tol);
   }
 
 #  include "intersections.inst"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.