Opened 11 years ago
Closed 11 years ago
#6438 closed Bugs (worksforme)
Parameters in the wrong order for grid_graph index from vertex function
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | To Be Determined | Component: | None |
Version: | Boost 1.48.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
This was already fixed in 1.48, and seems to have been fixed for a while.