From 67cd206f209caa57fb8c03bfbb92e30ecf33fb90 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 30 Jun 2017 18:09:12 +0200 Subject: [PATCH] Dynamic_polyhedron_property_map needs a default constructor, and we specify remove() to avoid ambiguities --- .../include/CGAL/boost/graph/properties_Polyhedron_3.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Polyhedron/include/CGAL/boost/graph/properties_Polyhedron_3.h b/Polyhedron/include/CGAL/boost/graph/properties_Polyhedron_3.h index 678354f98e5..96a5e495a29 100644 --- a/Polyhedron/include/CGAL/boost/graph/properties_Polyhedron_3.h +++ b/Polyhedron/include/CGAL/boost/graph/properties_Polyhedron_3.h @@ -46,9 +46,7 @@ struct Dynamic_polyhedron_property_map { typedef value_type& reference; typedef boost::read_write_property_map_tag category; - - - Dynamic_polyhedron_property_map(const V& default_value) + Dynamic_polyhedron_property_map(const V& default_value = V()) : map_(new Map()), default_value(default_value) {} @@ -612,8 +610,10 @@ add(boost::face_property_t vprop, Polyhedron_3& poly) return internal::Dynamic_polyhedron_property_map(vprop.t); } - template -void remove(Pmap pm, Polyhedron_3&) +template +void remove( + internal::Dynamic_polyhedron_property_map, Descriptor, V> pm, + Polyhedron_3&) { pm.clear(); }