COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/maps_test.cc

    r793 r761  
    8181    NullMap<A,B> map1;
    8282    NullMap<A,B> map2 = map1;
    83     ignore_unused_variable_warning(map2);
    8483    map1 = nullMap<A,B>();
    8584  }
     
    9291    ConstMap<A,B> map2 = B();
    9392    ConstMap<A,B> map3 = map1;
    94     ignore_unused_variable_warning(map2,map3);
    95 
    9693    map1 = constMap<A>(B());
    9794    map1 = constMap<A,B>();
     
    9996    ConstMap<A,C> map4(C(1));
    10097    ConstMap<A,C> map5 = map4;
    101     ignore_unused_variable_warning(map5);
    102 
    10398    map4 = constMap<A>(C(2));
    10499    map4.setAll(C(3));
     
    121116    IdentityMap<A> map1;
    122117    IdentityMap<A> map2 = map1;
    123     ignore_unused_variable_warning(map2);
    124 
    125118    map1 = identityMap<A>();
    126119
     
    182175    checkConcept<ReadMap<B,double>, CompMap>();
    183176    CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>());
    184     ignore_unused_variable_warning(map1);
    185177    CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>());
    186     ignore_unused_variable_warning(map2);
    187178
    188179    SparseMap<double, bool> m1(false); m1[3.14] = true;
     
    197188    checkConcept<ReadMap<A,double>, CombMap>();
    198189    CombMap map1 = CombMap(DoubleMap(), DoubleMap());
    199     ignore_unused_variable_warning(map1);
    200190    CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>());
    201     ignore_unused_variable_warning(map2);
    202191
    203192    check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3,
     
    211200    FunctorToMap<F> map1;
    212201    FunctorToMap<F> map2 = FunctorToMap<F>(F());
    213     ignore_unused_variable_warning(map2);
    214 
    215202    B b = functorToMap(F())[A()];
    216     ignore_unused_variable_warning(b);
    217203
    218204    checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >();
    219205    MapToFunctor<ReadMap<A,B> > map =
    220206      MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>());
    221     ignore_unused_variable_warning(map);
    222207
    223208    check(functorToMap(&func)[A()] == 3,
     
    237222      ConvertMap<ReadMap<double, int>, double> >();
    238223    ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true));
    239     ignore_unused_variable_warning(map1);
    240224    ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false));
    241     ignore_unused_variable_warning(map2);
    242 
    243225  }
    244226
Note: See TracChangeset for help on using the changeset viewer.