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
|
|
14 | 14 | namespace boost { |
15 | 15 | |
16 | 16 | template<class Graph, class Capacity, class ResidualCapacity, class Weight> |
17 | | typename property_traits<typename property_map < Graph, edge_capacity_t >::type>::value_type |
| 17 | typename property_traits<Weight>::value_type |
18 | 18 | find_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; |
20 | 20 | |
21 | 21 | Cost cost = 0; |
22 | 22 | BGL_FORALL_EDGES_T(e, g, Graph) { |