COIN-OR::LEMON - Graph Library

Changeset 515:a7eeb8af6b34 in lemon-0.x for src/test


Ignore:
Timestamp:
05/03/04 19:06:38 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@675
Message:

To be compatible with gcc-3.4.0 ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/graph_test.cc

    r504 r515  
    109109  {
    110110    Node k;
    111     typename Graph::NodeMap<int> m(G);
    112     typename Graph::NodeMap<int> const &cm = m;  //Const map
    113     typename Graph::NodeMap<int> mdef(G,12); //Inicialize with default value
    114     typename Graph::NodeMap<int> mm(cm);   //Copy
    115     typename Graph::NodeMap<double> dm(cm); //Copy from another type
     111    typename Graph::template NodeMap<int> m(G);
     112    typename Graph::template NodeMap<int> const &cm = m;  //Const map
     113    //Inicialize with default value
     114    typename Graph::template NodeMap<int> mdef(G,12);
     115    typename Graph::template NodeMap<int> mm(cm);   //Copy
     116    typename Graph::template NodeMap<double> dm(cm); //Copy from another type
    116117    int v;
    117118    v=m[k]; m[k]=v; m.set(k,v);
     
    123124  { //bool NodeMap
    124125    Node k;
    125     typename Graph::NodeMap<bool> m(G);
    126     typename Graph::NodeMap<bool> const &cm = m;  //Const map
    127     typename Graph::NodeMap<bool> mdef(G,12); //Inicialize with default value
    128     typename Graph::NodeMap<bool> mm(cm);   //Copy
    129     typename Graph::NodeMap<int> dm(cm); //Copy from another type
     126    typename Graph::template NodeMap<bool> m(G);
     127    typename Graph::template NodeMap<bool> const &cm = m;  //Const map
     128    //Inicialize with default value
     129    typename Graph::template NodeMap<bool> mdef(G,12);
     130    typename Graph::template NodeMap<bool> mm(cm);   //Copy
     131    typename Graph::template NodeMap<int> dm(cm); //Copy from another type
    130132    bool v;
    131133    v=m[k]; m[k]=v; m.set(k,v);
     
    139141  {
    140142    Edge k;
    141     typename Graph::EdgeMap<int> m(G);
    142     typename Graph::EdgeMap<int> const &cm = m;  //Const map
    143     typename Graph::EdgeMap<int> mdef(G,12); //Inicialize with default value
    144     typename Graph::EdgeMap<int> mm(cm);   //Copy
    145     typename Graph::EdgeMap<double> dm(cm); //Copy from another type
     143    typename Graph::template EdgeMap<int> m(G);
     144    typename Graph::template EdgeMap<int> const &cm = m;  //Const map
     145    //Inicialize with default value
     146    typename Graph::template EdgeMap<int> mdef(G,12);
     147    typename Graph::template EdgeMap<int> mm(cm);   //Copy
     148    typename Graph::template EdgeMap<double> dm(cm); //Copy from another type
    146149    int v;
    147150    v=m[k]; m[k]=v; m.set(k,v);
     
    153156  { //bool EdgeMap
    154157    Edge k;
    155     typename Graph::EdgeMap<bool> m(G);
    156     typename Graph::EdgeMap<bool> const &cm = m;  //Const map
    157     typename Graph::EdgeMap<bool> mdef(G,12); //Inicialize with default value
    158     typename Graph::EdgeMap<bool> mm(cm);   //Copy
    159     typename Graph::EdgeMap<int> dm(cm); //Copy from another type
     158    typename Graph::template EdgeMap<bool> m(G);
     159    typename Graph::template EdgeMap<bool> const &cm = m;  //Const map
     160    //Inicialize with default value
     161    typename Graph::template EdgeMap<bool> mdef(G,12);
     162    typename Graph::template EdgeMap<bool> mm(cm);   //Copy
     163    typename Graph::template EdgeMap<int> dm(cm); //Copy from another type
    160164    bool v;
    161165    v=m[k]; m[k]=v; m.set(k,v);
Note: See TracChangeset for help on using the changeset viewer.