From 3c8080bc02c7d4344cbb9ea27e41b2744f8d9eac Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 14 Feb 2016 11:21:44 +0300 Subject: [PATCH] Fixed LazyList when a lock type is specified --- cds/container/details/make_lazy_list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cds/container/details/make_lazy_list.h b/cds/container/details/make_lazy_list.h index 41be82c2..e57eeff2 100644 --- a/cds/container/details/make_lazy_list.h +++ b/cds/container/details/make_lazy_list.h @@ -97,8 +97,8 @@ namespace cds { namespace container { struct intrusive_traits: public original_type_traits { - typedef intrusive::lazy_list::base_hook< opt::gc > hook; - typedef node_deallocator disposer; + typedef intrusive::lazy_list::base_hook< opt::gc, cds::opt::lock_type< typename original_type_traits::lock_type >> hook; + typedef node_deallocator disposer; static CDS_CONSTEXPR const opt::link_check_type link_checker = cds::intrusive::lazy_list::traits::link_checker; typedef typename std::conditional< std::is_same< typename original_type_traits::equal_to, cds::opt::none >::value, -- 2.34.1