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