Subject: [Boost-bugs] [Boost C++ Libraries] #6438: Parameters in the wrong order for grid_graph index from vertex function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-23 14:32:10
#6438: Parameters in the wrong order for grid_graph index from vertex function
-----------------------+----------------------------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.48.0
Severity: Cosmetic | Keywords:
-----------------------+----------------------------------------------------
The documentation in this page says:
// Get the index associated with vertex
Traits::vertices_size_type
get(boost::vertex_index_t,
Traits::vertex_descriptor vertex,
const Graph& graph);
but the call only seems to work like this:
boost::graph_traits<Graph>::vertex_descriptor v = { { 0, 1 } };
boost::graph_traits<Graph>::vertices_size_type ind =
get(boost::vertex_index, graph, v);
So not only is it (graph, v) instead of (v, graph), it is also just
vertex_index instead of vertex_index_t.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6438> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC