Dynamic_polyhedron_property_map needs a default constructor,

and we specify remove() to avoid ambiguities
This commit is contained in:
Jane Tournois 2017-06-30 18:09:12 +02:00 committed by Andreas Fabri
parent 44c6114b2c
commit 67cd206f20
1 changed files with 5 additions and 5 deletions

View File

@ -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<V> vprop, Polyhedron_3<Gt, I, HDS, A>& poly)
return internal::Dynamic_polyhedron_property_map<SM,face_descriptor,V>(vprop.t);
}
template <typename Pmap, class Gt, class I, CGAL_HDS_PARAM_, class A>
void remove(Pmap pm, Polyhedron_3<Gt, I, HDS, A>&)
template<class Gt, class I, CGAL_HDS_PARAM_, class A, class V, typename Descriptor>
void remove(
internal::Dynamic_polyhedron_property_map<Polyhedron_3<Gt, I, HDS, A>, Descriptor, V> pm,
Polyhedron_3<Gt, I, HDS, A>&)
{
pm.clear();
}