Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73010 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-07-11 22:47:34


Author: jewillco
Date: 2011-07-11 22:47:34 EDT (Mon, 11 Jul 2011)
New Revision: 73010
URL: http://svn.boost.org/trac/boost/changeset/73010

Log:
Weakened concept requirements
Text files modified:
   trunk/boost/graph/boykov_kolmogorov_max_flow.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/graph/boykov_kolmogorov_max_flow.hpp
==============================================================================
--- trunk/boost/graph/boykov_kolmogorov_max_flow.hpp (original)
+++ trunk/boost/graph/boykov_kolmogorov_max_flow.hpp 2011-07-11 22:47:34 EDT (Mon, 11 Jul 2011)
@@ -556,7 +556,7 @@
        * white() for sink tree, gray() for no tree
        */
       inline tColorValue get_tree(vertex_descriptor v) const {
- return m_tree_map[v];
+ return get(m_tree_map, v);
       }
 
       /**
@@ -564,7 +564,7 @@
        * for sink tree, gray() for no tree
        */
       inline void set_tree(vertex_descriptor v, tColorValue t){
- m_tree_map[v] = t;
+ put(m_tree_map, v, t);
       }
 
       /**
@@ -743,11 +743,11 @@
   function_requires<VertexListGraphConcept<Graph> >(); //to have vertices(), num_vertices(),
   function_requires<EdgeListGraphConcept<Graph> >(); //to have edges()
   function_requires<IncidenceGraphConcept<Graph> >(); //to have source(), target() and out_edges()
- function_requires<LvaluePropertyMapConcept<CapacityEdgeMap, edge_descriptor> >(); //read flow-values from edges
+ function_requires<ReadablePropertyMapConcept<CapacityEdgeMap, edge_descriptor> >(); //read flow-values from edges
   function_requires<Mutable_LvaluePropertyMapConcept<ResidualCapacityEdgeMap, edge_descriptor> >(); //write flow-values to residuals
- function_requires<LvaluePropertyMapConcept<ReverseEdgeMap, edge_descriptor> >(); //read out reverse edges
+ function_requires<ReadablePropertyMapConcept<ReverseEdgeMap, edge_descriptor> >(); //read out reverse edges
   function_requires<Mutable_LvaluePropertyMapConcept<PredecessorMap, vertex_descriptor> >(); //store predecessor there
- function_requires<Mutable_LvaluePropertyMapConcept<ColorMap, vertex_descriptor> >(); //write corresponding tree
+ function_requires<ReadWritePropertyMapConcept<ColorMap, vertex_descriptor> >(); //write corresponding tree
   function_requires<Mutable_LvaluePropertyMapConcept<DistanceMap, vertex_descriptor> >(); //write distance to source/sink
   function_requires<ReadablePropertyMapConcept<IndexMap, vertex_descriptor> >(); //get index 0...|V|-1
   BOOST_ASSERT(num_vertices(g) >= 2 && src != sink);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk