[Boost-bugs] [Boost C++ Libraries] #2132: const-correctness bug in sparse_ordering.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #2132: const-correctness bug in sparse_ordering.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-07-21 08:08:44


#2132: const-correctness bug in sparse_ordering.hpp
--------------------------+-------------------------------------------------
 Reporter: dave | Owner: doug_gregor
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: graph
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 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.

 {{{
 #!patch
 Index: sparse_ordering.hpp
 ===================================================================
 --- sparse_ordering.hpp (revision 47085)
 +++ sparse_ordering.hpp (working copy)
 @@ -128,7 +128,7 @@
    //
    template <class Graph, class Vertex, class ColorMap, class DegreeMap>
    Vertex
 - pseudo_peripheral_pair(Graph& G, const Vertex& u, int& ecc,
 + pseudo_peripheral_pair(Graph const& G, const Vertex& u, int& ecc,
                           ColorMap color, DegreeMap degree)
    {
      typedef typename property_traits<ColorMap>::value_type ColorValue;
 @@ -152,7 +152,7 @@
    // of the ordering generated by RCM.
    //
    template <class Graph, class Vertex, class Color, class Degree>
 - Vertex find_starting_node(Graph& G, Vertex r, Color color, Degree
 degree)
 + Vertex find_starting_node(Graph const& G, Vertex r, Color color, Degree
 degree)
    {
      Vertex x, y;
      int eccen_r, eccen_x;

 }}}

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2132>
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:49:58 UTC