CuckooSet/Map refactoring
[libcds.git] / tests / test-hdr / map / hdr_cuckoo_map.cpp
index cf88bfc970fdaec287813996e1ea28815dd5c115..ef01159ee62fc85f3a65c704bc4c3ab340044531 100644 (file)
@@ -23,12 +23,11 @@ namespace map {
     {
         CPPUNIT_MESSAGE( "equal");
         {
-            typedef cc::CuckooMap< CuckooMapHdrTest::key_type, CuckooMapHdrTest::value_type,
-                cc::cuckoo::make_traits<
-                    co::equal_to< std::equal_to<int> >
-                    ,co::hash< std::tuple< hash1, hash2 > >
-                >::type
-            > map_t;
+            struct map_traits : public cc::cuckoo::traits {
+                typedef std::equal_to<int> equal_to;
+                typedef co::hash_tuple< hash1, hash2 > hash;
+            };
+            typedef cc::CuckooMap< CuckooMapHdrTest::key_type, CuckooMapHdrTest::value_type, map_traits > map_t;
 
             test_cuckoo<map_t>();
         }