diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h index eb59cf0357e..76774187d3a 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h @@ -29,6 +29,7 @@ #include #include #include +#include #include @@ -192,7 +193,7 @@ class Intersection_of_triangle_meshes // we use Face_pair_and_int and not Face_pair to handle coplanar case. // Indeed the boundary of the intersection of two coplanar triangles // may contain several segments. - typedef std::map< Face_pair_and_int, Node_id_set > Faces_to_nodes_map; + typedef boost::unordered_map< Face_pair_and_int, Node_id_set > Faces_to_nodes_map; typedef Intersection_nodes Node_vector; @@ -1051,7 +1052,7 @@ class Intersection_of_triangle_meshes } struct Graph_node{ - std::set neighbors; + boost::container::flat_set neighbors; unsigned degree; Graph_node():degree(0){}