A little generalizations
authorkhizmax <khizmax@gmail.com>
Mon, 1 Aug 2016 10:45:56 +0000 (13:45 +0300)
committerkhizmax <khizmax@gmail.com>
Mon, 1 Aug 2016 10:45:56 +0000 (13:45 +0300)
cds/container/details/lazy_list_base.h
cds/container/details/michael_list_base.h

index f21b4594254a582fda9738990aa4241a9f311ad4..ada19a34842c923c3f064d2a108dc817f42a8273 100644 (file)
@@ -43,14 +43,14 @@ namespace cds { namespace container {
     namespace lazy_list {
 
         /// \p LazyList internal statistics, see \p cds::intrusive::lazy_list::stat
-        template <typename EventCounter = cds::atomicity::event_counter>
+        template <typename EventCounter = cds::intrusive::lazy_list::stat<>::event_counter>
         using stat = cds::intrusive::lazy_list::stat< EventCounter >;
 
         /// \p LazyList empty internal statistics, see \p cds::intrusive::lazy_list::empty_stat
         typedef cds::intrusive::lazy_list::empty_stat empty_stat;
 
         //@cond
-        template <typename Stat = lazy_list::stat<>>
+        template <typename Stat = cds::intrusive::lazy_list::wrapped_stat<>::stat_type>
         using wrapped_stat = cds::intrusive::lazy_list::wrapped_stat< Stat >;
         //@endif
 
index 2a64ba4430dbc19d6fd8fe054164a8ad6f1404a1..df2e9e3658ae3151ee9a3ed798332d0f902b7bc4 100644 (file)
@@ -43,14 +43,14 @@ namespace cds { namespace container {
     namespace michael_list {
 
         /// \p MichaelList internal statistics, see \p cds::intrusive::michael_list::stat
-        template <typename EventCounter = cds::atomicity::event_counter>
+        template <typename EventCounter = cds::intrusive::michael_list::stat<>::event_counter >
         using stat = cds::intrusive::michael_list::stat< EventCounter >;
 
         /// \p MichaelList empty internal statistics, see \p cds::intrusive::michael_list::empty_stat
         typedef cds::intrusive::michael_list::empty_stat empty_stat;
 
         //@cond
-        template <typename Stat = michael_list::stat<>>
+        template <typename Stat = cds::intrusive::michael_list::wrapped_stat<>::stat_type>
         using wrapped_stat = cds::intrusive::michael_list::wrapped_stat< Stat >;
         //@endif