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)];
}
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);
}

View File

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

View File

@ -120,7 +120,7 @@ private :
FT Compute_volume_cost ( Vector const& v, Triangle_data_vector const& aTriangles ) ;
FT Compute_shape_cost ( Point const& p, vertex_descriptor_vector const& aLink ) ;
Point get_point ( vertex_descriptor const& v ) const
Point get_point ( vertex_descriptor const& v ) const
{
return convert(get(mProfile.vertex_point_map(),v));
}