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 f21b459..ada19a3 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 2a64ba4..df2e9e3 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