Ticket #7327: boost-1.51.0-alt-graph-use-traits.patch

File boost-1.51.0-alt-graph-use-traits.patch, 1.4 KB (added by Ivan A. Melnikov <iv@…>, 10 years ago)

patch against boost 1.51.0

  • boost/boost/graph/filtered_graph.hpp

    diff --git a/boost/boost/graph/filtered_graph.hpp b/boost/boost/graph/filtered_graph.hpp
    index 66cead6..6ac8292 100644
    a b namespace boost {  
    210210
    211211    static vertex_descriptor null_vertex()
    212212    {
    213        return Graph::null_vertex();
     213       return Traits::null_vertex();
    214214    }
    215215
    216216    //private:
  • boost/boost/graph/labeled_graph.hpp

    diff --git a/boost/boost/graph/labeled_graph.hpp b/boost/boost/graph/labeled_graph.hpp
    index e1a2f7c..71a8d88 100644
    a b namespace graph_detail {  
    196196    {
    197197        // If the element is already occupied, then we probably don't want to
    198198        // overwrite it.
    199         if(c[l] == Graph::null_vertex()) return false;
     199        if(c[l] == graph_traits<Grpah>::null_vertex()) return false;
    200200        c[l] = v;
    201201        return true;
    202202    }
    public:  
    411411
    412412    /** Return a null descriptor */
    413413    static vertex_descriptor null_vertex()
    414     { return graph_type::null_vertex(); }
     414    { return graph_traits<graph_type>::null_vertex(); }
    415415
    416416private:
    417417    graph_type _graph;
    public:  
    525525#endif
    526526
    527527    static vertex_descriptor null_vertex()
    528     { return graph_type::null_vertex(); }
     528    { return graph_traits<graph_type>::null_vertex(); }
    529529
    530530private:
    531531    graph_type* _graph;