From 4cf7f5e047b2d34781540aeeb3653e89c4be54b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 4 Oct 2018 10:33:45 +0200 Subject: [PATCH] use Point_accessor instead of a duplicate --- .../graph/graph_traits_HalfedgeDS_default.h | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) 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 6b3898880b1..aaddbbe254a 100644 --- a/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h +++ b/HalfedgeDS/include/CGAL/boost/graph/graph_traits_HalfedgeDS_default.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace CGAL { @@ -446,21 +447,6 @@ num_faces(const HalfedgeDS_default& p) { return p.size_of_faces(); } -namespace internal { - -template -struct HDS_Point_accessor - : boost::put_get_helper< Reference, HDS_Point_accessor > -{ - typedef boost::lvalue_property_map_tag category; - typedef Reference reference; - typedef ValueType value_type; - typedef Handle key_type; - - reference operator[](Handle h) const { return h->point(); } -}; - -} // namespace internal template struct HDS_property_map; @@ -471,13 +457,13 @@ struct HDS_property_map template struct bind_ { - typedef internal::HDS_Point_accessor< + typedef internal::Point_accessor< typename boost::graph_traits< HalfedgeDS_default >::vertex_descriptor, typename T::Point_3, typename T::Point_3&> type; - typedef internal::HDS_Point_accessor< + typedef internal::Point_accessor< typename boost::graph_traits< HalfedgeDS_default >::vertex_descriptor,