Changes in test/maps_test.cc [793:8d2e55fac752:808:bdfc038f364c] in lemon-1.1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/maps_test.cc
r793 r808 81 81 NullMap<A,B> map1; 82 82 NullMap<A,B> map2 = map1; 83 ignore_unused_variable_warning(map2);83 ::lemon::ignore_unused_variable_warning(map2); 84 84 map1 = nullMap<A,B>(); 85 85 } … … 92 92 ConstMap<A,B> map2 = B(); 93 93 ConstMap<A,B> map3 = map1; 94 ignore_unused_variable_warning(map2,map3);94 ::lemon::ignore_unused_variable_warning(map2,map3); 95 95 96 96 map1 = constMap<A>(B()); … … 99 99 ConstMap<A,C> map4(C(1)); 100 100 ConstMap<A,C> map5 = map4; 101 ignore_unused_variable_warning(map5);101 ::lemon::ignore_unused_variable_warning(map5); 102 102 103 103 map4 = constMap<A>(C(2)); … … 121 121 IdentityMap<A> map1; 122 122 IdentityMap<A> map2 = map1; 123 ignore_unused_variable_warning(map2);123 ::lemon::ignore_unused_variable_warning(map2); 124 124 125 125 map1 = identityMap<A>(); … … 182 182 checkConcept<ReadMap<B,double>, CompMap>(); 183 183 CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>()); 184 ignore_unused_variable_warning(map1);184 ::lemon::ignore_unused_variable_warning(map1); 185 185 CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>()); 186 ignore_unused_variable_warning(map2);186 ::lemon::ignore_unused_variable_warning(map2); 187 187 188 188 SparseMap<double, bool> m1(false); m1[3.14] = true; … … 197 197 checkConcept<ReadMap<A,double>, CombMap>(); 198 198 CombMap map1 = CombMap(DoubleMap(), DoubleMap()); 199 ignore_unused_variable_warning(map1);199 ::lemon::ignore_unused_variable_warning(map1); 200 200 CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>()); 201 ignore_unused_variable_warning(map2);201 ::lemon::ignore_unused_variable_warning(map2); 202 202 203 203 check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3, … … 211 211 FunctorToMap<F> map1; 212 212 FunctorToMap<F> map2 = FunctorToMap<F>(F()); 213 ignore_unused_variable_warning(map2);213 ::lemon::ignore_unused_variable_warning(map2); 214 214 215 215 B b = functorToMap(F())[A()]; 216 ignore_unused_variable_warning(b);216 ::lemon::ignore_unused_variable_warning(b); 217 217 218 218 checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >(); 219 219 MapToFunctor<ReadMap<A,B> > map = 220 220 MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>()); 221 ignore_unused_variable_warning(map);221 ::lemon::ignore_unused_variable_warning(map); 222 222 223 223 check(functorToMap(&func)[A()] == 3, … … 237 237 ConvertMap<ReadMap<double, int>, double> >(); 238 238 ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true)); 239 ignore_unused_variable_warning(map1);239 ::lemon::ignore_unused_variable_warning(map1); 240 240 ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false)); 241 ignore_unused_variable_warning(map2);241 ::lemon::ignore_unused_variable_warning(map2); 242 242 243 243 }
Note: See TracChangeset
for help on using the changeset viewer.