From 0dac2e5804a714c13ec1435c5c37fe32c8a72cdc Mon Sep 17 00:00:00 2001 From: mvalais 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/boost/graph/find_flow_cost.hpp +++ b/boost/graph/find_flow_cost.hpp @@ -14,9 +14,9 @@ namespace boost { template -typename property_traits::type>::value_type +typename property_traits::value_type find_flow_cost(const Graph & g, Capacity capacity, ResidualCapacity residual_capacity, Weight weight) { - typedef typename property_traits::const_type>::value_type Cost; + typedef typename property_traits::value_type Cost; Cost cost = 0; BGL_FORALL_EDGES_T(e, g, Graph) { -- 1.9.1