From 9a4b4a7969187e08011c711a73e659a7dbbfaa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 12 Apr 2019 14:33:28 +0200 Subject: [PATCH] add missing reserve overload for HDS --- .../boost/graph/graph_traits_HalfedgeDS_default.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h b/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h index 05346c0aac7..1f84f085c02 100644 --- a/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h +++ b/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h @@ -470,7 +470,16 @@ struct HDS_property_map typename T::Point_3, const typename T::Point_3&> const_type; }; }; - + +template +void reserve(HalfedgeDS_default& p, + typename boost::graph_traits< HalfedgeDS_default const>::vertices_size_type nv, + typename boost::graph_traits< HalfedgeDS_default const>::edges_size_type ne, + typename boost::graph_traits< HalfedgeDS_default const>::faces_size_type nf) +{ + p.reserve(nv, 2*ne, nf); +} + }// namespace CGAL namespace boost {