From ec013564a9ae6ef175a9b830b384b3e3e23f30b2 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Tue, 15 Dec 2020 22:18:12 +0100 Subject: [PATCH] Use a small_vector in Delaunay_triangulation It is only used locally in a function, and its size is at most the dimension + 2. Making the vector thread_local would work as well. --- Triangulation/include/CGAL/Delaunay_triangulation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Triangulation/include/CGAL/Delaunay_triangulation.h b/Triangulation/include/CGAL/Delaunay_triangulation.h index ba0ff90cf6e..8572516de14 100644 --- a/Triangulation/include/CGAL/Delaunay_triangulation.h +++ b/Triangulation/include/CGAL/Delaunay_triangulation.h @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -792,7 +793,7 @@ Delaunay_triangulation { CGAL_precondition_msg( ! is_infinite(s), "full cell must be finite"); CGAL_expensive_precondition( POSITIVE == orientation(s) ); - typedef std::vector Points; + typedef boost::container::small_vector Points; Points points(current_dimension() + 2); int i(0); for( ; i <= current_dimension(); ++i )