COIN-OR::LEMON - Graph Library

Changeset 669:4faca85d40e6 in lemon-main


Ignore:
Timestamp:
05/12/09 20:08:23 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Avoid Intel C++ Compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/min_cost_flow_test.cc

    r664 r669  
    9494    void constraints() {
    9595      checkConcept<concepts::Digraph, GR>();
    96 
    97       MCF mcf(g);
     96     
     97      const Constraints& me = *this;
     98
     99      MCF mcf(me.g);
    98100      const MCF& const_mcf = mcf;
    99101
    100102      b = mcf.reset()
    101              .lowerMap(lower)
    102              .upperMap(upper)
    103              .costMap(cost)
    104              .supplyMap(sup)
    105              .stSupply(n, n, k)
     103             .lowerMap(me.lower)
     104             .upperMap(me.upper)
     105             .costMap(me.cost)
     106             .supplyMap(me.sup)
     107             .stSupply(me.n, me.n, me.k)
    106108             .run();
    107109
    108110      c = const_mcf.totalCost();
    109111      x = const_mcf.template totalCost<double>();
    110       v = const_mcf.flow(a);
    111       c = const_mcf.potential(n);
     112      v = const_mcf.flow(me.a);
     113      c = const_mcf.potential(me.n);
    112114      const_mcf.flowMap(fm);
    113115      const_mcf.potentialMap(pm);
     
    121123    typedef concepts::WriteMap<Arc, Value> FlowMap;
    122124    typedef concepts::WriteMap<Node, Cost> PotMap;
    123 
    124     const GR &g;
    125     const VAM &lower;
    126     const VAM &upper;
    127     const CAM &cost;
    128     const NM &sup;
    129     const Node &n;
    130     const Arc &a;
    131     const Value &k;
     125 
     126    GR g;
     127    VAM lower;
     128    VAM upper;
     129    CAM cost;
     130    NM sup;
     131    Node n;
     132    Arc a;
     133    Value k;
     134
    132135    FlowMap fm;
    133136    PotMap pm;
Note: See TracChangeset for help on using the changeset viewer.