Ticket #11374: 0001-trac-11374-fixed-find_flow_cost-where-it-was-impossi.patch

File 0001-trac-11374-fixed-find_flow_cost-where-it-was-impossi.patch, 1.1 KB (added by Maël Valais <mael.valais@…>, 7 years ago)
  • boost/graph/find_flow_cost.hpp

    From 0dac2e5804a714c13ec1435c5c37fe32c8a72cdc Mon Sep 17 00:00:00 2001
    From: mvalais <mael.valais@mobigis.fr>
    Date: Thu, 4 Jun 2015 14:22:14 +0200
    Subject: [PATCH] trac 11374: fixed find_flow_cost where it was impossible to
     use bundled or user-defined properties
    
    ---
     boost/graph/find_flow_cost.hpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/boost/graph/find_flow_cost.hpp b/boost/graph/find_flow_cost.hpp
    index e4d6f40..f30735f 100644
    a b  
    1414namespace boost {
    1515
    1616template<class Graph, class Capacity, class ResidualCapacity, class Weight>
    17 typename property_traits<typename property_map < Graph, edge_capacity_t >::type>::value_type
     17typename property_traits<Weight>::value_type
    1818find_flow_cost(const Graph & g, Capacity capacity, ResidualCapacity residual_capacity, Weight weight) {
    19     typedef typename property_traits<typename property_map<Graph, edge_weight_t>::const_type>::value_type Cost;
     19    typedef typename property_traits<Weight>::value_type Cost;
    2020
    2121    Cost cost = 0;
    2222    BGL_FORALL_EDGES_T(e, g, Graph) {