1.1 --- a/test/maps_test.cc Mon Mar 17 19:21:27 2008 +0000
1.2 +++ b/test/maps_test.cc Tue Mar 18 13:57:15 2008 +0100
1.3 @@ -32,6 +32,12 @@
1.4 inline bool operator<(A, A) { return true; }
1.5 struct B {};
1.6
1.7 +class C {
1.8 + int x;
1.9 +public:
1.10 + C(int _x) : x(_x) {}
1.11 +};
1.12 +
1.13 class F {
1.14 public:
1.15 typedef A argument_type;
1.16 @@ -58,9 +64,13 @@
1.17 {
1.18 // Map concepts
1.19 checkConcept<ReadMap<A,B>, ReadMap<A,B> >();
1.20 + checkConcept<ReadMap<A,C>, ReadMap<A,C> >();
1.21 checkConcept<WriteMap<A,B>, WriteMap<A,B> >();
1.22 + checkConcept<WriteMap<A,C>, WriteMap<A,C> >();
1.23 checkConcept<ReadWriteMap<A,B>, ReadWriteMap<A,B> >();
1.24 + checkConcept<ReadWriteMap<A,C>, ReadWriteMap<A,C> >();
1.25 checkConcept<ReferenceMap<A,B,B&,const B&>, ReferenceMap<A,B,B&,const B&> >();
1.26 + checkConcept<ReferenceMap<A,C,C&,const C&>, ReferenceMap<A,C,C&,const C&> >();
1.27
1.28 // NullMap
1.29 {