# HG changeset patch # User Peter Kovacs # Date 1242151703 -7200 # Node ID 4faca85d40e6bca1bf583f332513c69bd0967cdf # Parent 7e13120d90a252e35c85811a5ad7e4f077af2f1a Avoid Intel C++ Compiler warnings diff -r 7e13120d90a2 -r 4faca85d40e6 test/min_cost_flow_test.cc --- a/test/min_cost_flow_test.cc Tue May 12 17:57:49 2009 +0200 +++ b/test/min_cost_flow_test.cc Tue May 12 20:08:23 2009 +0200 @@ -93,22 +93,24 @@ struct Constraints { void constraints() { checkConcept(); + + const Constraints& me = *this; - MCF mcf(g); + MCF mcf(me.g); const MCF& const_mcf = mcf; b = mcf.reset() - .lowerMap(lower) - .upperMap(upper) - .costMap(cost) - .supplyMap(sup) - .stSupply(n, n, k) + .lowerMap(me.lower) + .upperMap(me.upper) + .costMap(me.cost) + .supplyMap(me.sup) + .stSupply(me.n, me.n, me.k) .run(); c = const_mcf.totalCost(); x = const_mcf.template totalCost(); - v = const_mcf.flow(a); - c = const_mcf.potential(n); + v = const_mcf.flow(me.a); + c = const_mcf.potential(me.n); const_mcf.flowMap(fm); const_mcf.potentialMap(pm); } @@ -120,15 +122,16 @@ typedef concepts::ReadMap CAM; typedef concepts::WriteMap FlowMap; typedef concepts::WriteMap PotMap; + + GR g; + VAM lower; + VAM upper; + CAM cost; + NM sup; + Node n; + Arc a; + Value k; - const GR &g; - const VAM &lower; - const VAM &upper; - const CAM &cost; - const NM ⊃ - const Node &n; - const Arc &a; - const Value &k; FlowMap fm; PotMap pm; bool b;