COIN-OR::LEMON - Graph Library

Changeset 2386:81b47fc5c444 in lemon-0.x for test/map_test.h


Ignore:
Timestamp:
03/02/07 19:04:28 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
Message:

Hard Warning checking

  • based on the remark of the ZIB user
  • we do not use -Winline
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/map_test.h

    r1956 r2386  
    4646    typedef typename Graph::template NodeMap<int> IntNodeMap;
    4747    IntNodeMap map(graph, 42);
    48     for (int i = 0; i < (int)nodes.size(); ++i) {
     48    for (int i = 0; i < int(nodes.size()); ++i) {
    4949      check(map[nodes[i]] == 42, "Wrong map constructor.");     
    5050    }
     
    5454    }
    5555    map = constMap<Node>(12);
    56     for (int i = 0; i < (int)nodes.size(); ++i) {
     56    for (int i = 0; i < int(nodes.size()); ++i) {
    5757      check(map[nodes[i]] == 12, "Wrong map constructor.");     
    5858    }   
     
    8484    IntEdgeMap map(graph, 42);
    8585   
    86     for (int i = 0; i < (int)edges.size(); ++i) {
     86    for (int i = 0; i < int(edges.size()); ++i) {
    8787      check(map[edges[i]] == 42, "Wrong map constructor.");     
    8888    }
     
    9595    }
    9696    map = constMap<Edge>(12);
    97     for (int i = 0; i < (int)edges.size(); ++i) {
     97    for (int i = 0; i < int(edges.size()); ++i) {
    9898      check(map[edges[i]] == 12, "Wrong map constructor.");     
    9999    }   
Note: See TracChangeset for help on using the changeset viewer.