Don't use const Point& but property_traits<..>::reference

This commit is contained in:
Andreas Fabri 2014-07-02 17:44:10 +02:00
parent 6546468092
commit 00be4cd8fa
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,8 @@ private:
return mEdgeDataArray[get_edge_id(aEdge)]; return mEdgeDataArray[get_edge_id(aEdge)];
} }
Point const& get_point ( vertex_descriptor const& aV ) const typename boost::property_traits<VertexPointMap>::reference
get_point ( vertex_descriptor const& aV ) const
{ {
return get(Vertex_point_map,aV); return get(Vertex_point_map,aV);
} }

View File

@ -46,7 +46,6 @@ public:
optional<typename Profile::Point> operator()( Profile const& aProfile ) const optional<typename Profile::Point> operator()( Profile const& aProfile ) const
{ {
typedef typename Profile::ECM ECM; typedef typename Profile::ECM ECM;
typedef typename boost::graph_traits<ECM> GraphTraits;
typedef typename CGAL::Halfedge_around_target_iterator<ECM> in_edge_iterator; typedef typename CGAL::Halfedge_around_target_iterator<ECM> in_edge_iterator;
in_edge_iterator eb, ee ; in_edge_iterator eb, ee ;