src/test/maps_test.cc
changeset 1419 c3244a26adb1
parent 1076 67a115cdade4
equal deleted inserted replaced
2:3c1d0c7259a7 3:e5ffa172ccf7
    10 struct A {};
    10 struct A {};
    11 struct B {};
    11 struct B {};
    12 class F
    12 class F
    13 {
    13 {
    14 public:
    14 public:
    15   B operator()(const A &a) const {return B();}
    15   B operator()(const A &) const {return B();}
    16 };
    16 };
    17 
    17 
    18 int func(A a) {return 3;}
    18 int func(A) {return 3;}
    19 
    19 
    20 typedef ReadMap<A,double> DoubleMap;
    20 typedef ReadMap<A,double> DoubleMap;
    21 
    21 
    22 int main()
    22 int main()
    23 { // checking graph components
    23 { // checking graph components