Fixed clang 4 incompatibility
[libcds.git] / test / unit / map / split_michael_dhp.cpp
index 0d0fcbdcfd05f53ff7188c06b693268dbaaa0d83..4d7f6f2979c40afcfadb69100f3e50ec565c7eb1 100644 (file)
@@ -1,7 +1,7 @@
 /*
     This file is a part of libcds - Concurrent Data Structures library
 
-    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
@@ -55,25 +55,24 @@ namespace {
             };
             typedef cc::SplitListMap< gc_type, key_type, value_type, map_traits >   map_type;
 
-            // +1 - for guarded_ptr
-            cds::gc::dhp::GarbageCollector::Construct( 16, map_type::c_nHazardPtrCount );
+            cds::gc::dhp::smr::construct( map_type::c_nHazardPtrCount );
             cds::threading::Manager::attachThread();
         }
 
         void TearDown()
         {
             cds::threading::Manager::detachThread();
-            cds::gc::dhp::GarbageCollector::Destruct();
+            cds::gc::dhp::smr::destruct( true );
         }
     };
 
     TEST_F( SplitListMichaelMap_DHP, compare )
     {
-        typedef cc::SplitListMap< gc_type, key_type, value_type, 
+        typedef cc::SplitListMap< gc_type, key_type, value_type,
             typename cc::split_list::make_traits<
                 cc::split_list::ordered_list< cc::michael_list_tag >
                 , cds::opt::hash< hash1 >
-                , cc::split_list::ordered_list_traits< 
+                , cc::split_list::ordered_list_traits<
                     typename cc::michael_list::make_traits<
                         cds::opt::compare< cmp >
                     >::type
@@ -87,11 +86,11 @@ namespace {
 
     TEST_F( SplitListMichaelMap_DHP, less )
     {
-        typedef cc::SplitListMap< gc_type, key_type, value_type, 
+        typedef cc::SplitListMap< gc_type, key_type, value_type,
             typename cc::split_list::make_traits<
                 cc::split_list::ordered_list< cc::michael_list_tag >
                 , cds::opt::hash< hash1 >
-                , cc::split_list::ordered_list_traits< 
+                , cc::split_list::ordered_list_traits<
                     typename cc::michael_list::make_traits<
                         cds::opt::less< less >
                     >::type
@@ -105,11 +104,11 @@ namespace {
 
     TEST_F( SplitListMichaelMap_DHP, cmpmix )
     {
-        typedef cc::SplitListMap< gc_type, key_type, value_type, 
+        typedef cc::SplitListMap< gc_type, key_type, value_type,
             typename cc::split_list::make_traits<
                 cc::split_list::ordered_list< cc::michael_list_tag >
                 , cds::opt::hash< hash1 >
-                , cc::split_list::ordered_list_traits< 
+                , cc::split_list::ordered_list_traits<
                     typename cc::michael_list::make_traits<
                         cds::opt::less< less >
                         , cds::opt::compare< cmp >