Opened 14 years ago
Closed 14 years ago
#2132 closed Bugs (fixed)
const-correctness bug in sparse_ordering.hpp
Reported by: | Dave Abrahams | Owned by: | Jeremiah Willcock |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | graph |
Version: | Boost 1.35.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Did this code even get tested? Or am I on crack to think that it's wrong?
This patch fixes it for my particular test case.
-
sparse_ordering.hpp
128 128 // 129 129 template <class Graph, class Vertex, class ColorMap, class DegreeMap> 130 130 Vertex 131 pseudo_peripheral_pair(Graph & G, const Vertex& u, int& ecc,131 pseudo_peripheral_pair(Graph const& G, const Vertex& u, int& ecc, 132 132 ColorMap color, DegreeMap degree) 133 133 { 134 134 typedef typename property_traits<ColorMap>::value_type ColorValue; … … 152 152 // of the ordering generated by RCM. 153 153 // 154 154 template <class Graph, class Vertex, class Color, class Degree> 155 Vertex find_starting_node(Graph & G, Vertex r, Color color, Degree degree)155 Vertex find_starting_node(Graph const& G, Vertex r, Color color, Degree degree) 156 156 { 157 157 Vertex x, y; 158 158 int eccen_r, eccen_x;
Change History (3)
comment:1 by , 14 years ago
Owner: | changed from | to
---|
comment:2 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [50823]) Applied patch from #2132, closes #2132