add missing reserve() using interanl helpers

This commit is contained in:
Maxime Gimeno 2020-07-01 15:37:00 +02:00
parent 9cfb0401a4
commit f6bfc69162
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include <CGAL/boost/graph/helpers.h>
#include <CGAL/boost/graph/Face_filtered_graph.h>
#include <CGAL/boost/graph/copy_face_graph.h>
#include <CGAL/Container_helper.h>
#include <CGAL/assertions.h>
#include <CGAL/tuple.h>
@ -973,7 +974,7 @@ void split_connected_components_impl(FIMap fim,
}
nb_patches+=1;
}
CGAL::internal::reserve(range, nb_patches);
for(faces_size_type i=0; i<nb_patches; ++i)
{
CGAL::Face_filtered_graph<PolygonMesh, FIMap, VIMap, HIMap>