From: khizmax Date: Sun, 14 Feb 2016 08:21:44 +0000 (+0300) Subject: Fixed LazyList when a lock type is specified X-Git-Tag: v2.2.0~394 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c8080bc02c7d4344cbb9ea27e41b2744f8d9eac;p=libcds.git Fixed LazyList when a lock type is specified --- 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,