test/maps_test.cc
changeset 983 8b2d4e5d96e4
parent 964 7fdaa05a69a1
parent 982 3e711ee55d31
child 985 b9887ae63df0
     1.1 --- a/test/maps_test.cc	Wed Nov 28 11:58:00 2012 +0100
     1.2 +++ b/test/maps_test.cc	Wed Aug 07 06:55:05 2013 +0200
     1.3 @@ -103,7 +103,7 @@
     1.4      checkConcept<ReadWriteMap<A,B>, NullMap<A,B> >();
     1.5      NullMap<A,B> map1;
     1.6      NullMap<A,B> map2 = map1;
     1.7 -    ignore_unused_variable_warning(map2);
     1.8 +    ::lemon::ignore_unused_variable_warning(map2);
     1.9      map1 = nullMap<A,B>();
    1.10    }
    1.11  
    1.12 @@ -114,14 +114,14 @@
    1.13      ConstMap<A,B> map1;
    1.14      ConstMap<A,B> map2 = B();
    1.15      ConstMap<A,B> map3 = map1;
    1.16 -    ignore_unused_variable_warning(map2,map3);
    1.17 +    ::lemon::ignore_unused_variable_warning(map2,map3);
    1.18  
    1.19      map1 = constMap<A>(B());
    1.20      map1 = constMap<A,B>();
    1.21      map1.setAll(B());
    1.22      ConstMap<A,C> map4(C(1));
    1.23      ConstMap<A,C> map5 = map4;
    1.24 -    ignore_unused_variable_warning(map5);
    1.25 +    ::lemon::ignore_unused_variable_warning(map5);
    1.26  
    1.27      map4 = constMap<A>(C(2));
    1.28      map4.setAll(C(3));
    1.29 @@ -143,7 +143,7 @@
    1.30      checkConcept<ReadMap<A,A>, IdentityMap<A> >();
    1.31      IdentityMap<A> map1;
    1.32      IdentityMap<A> map2 = map1;
    1.33 -    ignore_unused_variable_warning(map2);
    1.34 +    ::lemon::ignore_unused_variable_warning(map2);
    1.35  
    1.36      map1 = identityMap<A>();
    1.37  
    1.38 @@ -204,9 +204,9 @@
    1.39      typedef ComposeMap<DoubleMap, ReadMap<B,A> > CompMap;
    1.40      checkConcept<ReadMap<B,double>, CompMap>();
    1.41      CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>());
    1.42 -    ignore_unused_variable_warning(map1);
    1.43 +    ::lemon::ignore_unused_variable_warning(map1);
    1.44      CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>());
    1.45 -    ignore_unused_variable_warning(map2);
    1.46 +    ::lemon::ignore_unused_variable_warning(map2);
    1.47  
    1.48      SparseMap<double, bool> m1(false); m1[3.14] = true;
    1.49      RangeMap<double> m2(2); m2[0] = 3.0; m2[1] = 3.14;
    1.50 @@ -219,9 +219,9 @@
    1.51      typedef CombineMap<DoubleMap, DoubleMap, std::plus<double> > CombMap;
    1.52      checkConcept<ReadMap<A,double>, CombMap>();
    1.53      CombMap map1 = CombMap(DoubleMap(), DoubleMap());
    1.54 -    ignore_unused_variable_warning(map1);
    1.55 +    ::lemon::ignore_unused_variable_warning(map1);
    1.56      CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>());
    1.57 -    ignore_unused_variable_warning(map2);
    1.58 +    ::lemon::ignore_unused_variable_warning(map2);
    1.59  
    1.60      check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3,
    1.61            "Something is wrong with CombineMap");
    1.62 @@ -233,15 +233,15 @@
    1.63      checkConcept<ReadMap<A,B>, FunctorToMap<F> >();
    1.64      FunctorToMap<F> map1;
    1.65      FunctorToMap<F> map2 = FunctorToMap<F>(F());
    1.66 -    ignore_unused_variable_warning(map2);
    1.67 +    ::lemon::ignore_unused_variable_warning(map2);
    1.68  
    1.69      B b = functorToMap(F())[A()];
    1.70 -    ignore_unused_variable_warning(b);
    1.71 +    ::lemon::ignore_unused_variable_warning(b);
    1.72  
    1.73      checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >();
    1.74      MapToFunctor<ReadMap<A,B> > map =
    1.75        MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>());
    1.76 -    ignore_unused_variable_warning(map);
    1.77 +    ::lemon::ignore_unused_variable_warning(map);
    1.78  
    1.79      check(functorToMap(&func)[A()] == 3,
    1.80            "Something is wrong with FunctorToMap");
    1.81 @@ -259,9 +259,9 @@
    1.82      checkConcept<ReadMap<double,double>,
    1.83        ConvertMap<ReadMap<double, int>, double> >();
    1.84      ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true));
    1.85 -    ignore_unused_variable_warning(map1);
    1.86 +    ::lemon::ignore_unused_variable_warning(map1);
    1.87      ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false));
    1.88 -    ignore_unused_variable_warning(map2);
    1.89 +    ::lemon::ignore_unused_variable_warning(map2);
    1.90  
    1.91    }
    1.92