Changes in test/maps_test.cc [998:7fdaa05a69a1:942:633956ca9421] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/maps_test.cc
r998 r942 104 104 NullMap<A,B> map1; 105 105 NullMap<A,B> map2 = map1; 106 ignore_unused_variable_warning(map2);107 106 map1 = nullMap<A,B>(); 108 107 } … … 115 114 ConstMap<A,B> map2 = B(); 116 115 ConstMap<A,B> map3 = map1; 117 ignore_unused_variable_warning(map2,map3);118 119 116 map1 = constMap<A>(B()); 120 117 map1 = constMap<A,B>(); … … 122 119 ConstMap<A,C> map4(C(1)); 123 120 ConstMap<A,C> map5 = map4; 124 ignore_unused_variable_warning(map5);125 126 121 map4 = constMap<A>(C(2)); 127 122 map4.setAll(C(3)); … … 144 139 IdentityMap<A> map1; 145 140 IdentityMap<A> map2 = map1; 146 ignore_unused_variable_warning(map2);147 148 141 map1 = identityMap<A>(); 149 142 … … 205 198 checkConcept<ReadMap<B,double>, CompMap>(); 206 199 CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>()); 207 ignore_unused_variable_warning(map1);208 200 CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>()); 209 ignore_unused_variable_warning(map2);210 201 211 202 SparseMap<double, bool> m1(false); m1[3.14] = true; … … 220 211 checkConcept<ReadMap<A,double>, CombMap>(); 221 212 CombMap map1 = CombMap(DoubleMap(), DoubleMap()); 222 ignore_unused_variable_warning(map1);223 213 CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>()); 224 ignore_unused_variable_warning(map2);225 214 226 215 check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3, … … 234 223 FunctorToMap<F> map1; 235 224 FunctorToMap<F> map2 = FunctorToMap<F>(F()); 236 ignore_unused_variable_warning(map2);237 238 225 B b = functorToMap(F())[A()]; 239 ignore_unused_variable_warning(b);240 226 241 227 checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >(); 242 228 MapToFunctor<ReadMap<A,B> > map = 243 229 MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>()); 244 ignore_unused_variable_warning(map);245 230 246 231 check(functorToMap(&func)[A()] == 3, … … 260 245 ConvertMap<ReadMap<double, int>, double> >(); 261 246 ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true)); 262 ignore_unused_variable_warning(map1);263 247 ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false)); 264 ignore_unused_variable_warning(map2);265 266 248 } 267 249
Note: See TracChangeset
for help on using the changeset viewer.