Restore hashing in tests
authorkhizmax <libcds.dev@gmail.com>
Fri, 26 Sep 2014 04:29:20 +0000 (08:29 +0400)
committerkhizmax <libcds.dev@gmail.com>
Fri, 26 Sep 2014 04:29:20 +0000 (08:29 +0400)
tests/unit/map2/map_delodd.cpp
tests/unit/set2/set_delodd.cpp

index a63abd323069df01e3a3f03fe6fd6e8d88580b7a..382a63e09fcee4cd3e593f7f1d2b4b0f25b8d0d1 100644 (file)
@@ -101,8 +101,11 @@ namespace std {
     };
 } // namespace std
 
-/*
 namespace boost {
+    inline size_t hash_value( map2::key_thread const& k )\r
+    {\r
+        return std::hash<size_t>()( k.nKey );\r
+    }
     template <>
     struct hash<map2::key_thread>
     {
@@ -119,7 +122,6 @@ namespace boost {
         }
     };
 } // namespace boost
-*/
 
 namespace map2 {
 
index d2604c8033d6328e791ee53d1676fe191d056640..29782a6649c5cbd57f6c38cc19f8b214c5251482 100644 (file)
@@ -102,7 +102,6 @@ namespace std {
 
 } // namespace std
 
-/*
 namespace boost {
     inline size_t hash_value( set2::key_thread const& k )
     {
@@ -125,7 +124,6 @@ namespace boost {
         }
     };
 } // namespace boost
-*/
 
 namespace set2 {