mirror of https://github.com/CGAL/cgal
Dynamic_polyhedron_property_map needs a default constructor,
and we specify remove() to avoid ambiguities
This commit is contained in:
parent
44c6114b2c
commit
67cd206f20
|
|
@ -46,9 +46,7 @@ struct Dynamic_polyhedron_property_map {
|
||||||
typedef value_type& reference;
|
typedef value_type& reference;
|
||||||
typedef boost::read_write_property_map_tag category;
|
typedef boost::read_write_property_map_tag category;
|
||||||
|
|
||||||
|
Dynamic_polyhedron_property_map(const V& default_value = V())
|
||||||
|
|
||||||
Dynamic_polyhedron_property_map(const V& default_value)
|
|
||||||
: map_(new Map()), default_value(default_value)
|
: 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);
|
return internal::Dynamic_polyhedron_property_map<SM,face_descriptor,V>(vprop.t);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Pmap, class Gt, class I, CGAL_HDS_PARAM_, class A>
|
template<class Gt, class I, CGAL_HDS_PARAM_, class A, class V, typename Descriptor>
|
||||||
void remove(Pmap pm, Polyhedron_3<Gt, I, HDS, A>&)
|
void remove(
|
||||||
|
internal::Dynamic_polyhedron_property_map<Polyhedron_3<Gt, I, HDS, A>, Descriptor, V> pm,
|
||||||
|
Polyhedron_3<Gt, I, HDS, A>&)
|
||||||
{
|
{
|
||||||
pm.clear();
|
pm.clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue