From: khizmax Date: Tue, 17 Feb 2015 15:31:58 +0000 (+0300) Subject: simplified local types X-Git-Tag: v2.1.0~305^2~51^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f500d7abf81b1c2ff07324812d9876f4ad7ee8ff;p=libcds.git simplified local types --- diff --git a/tests/test-hdr/ordered_list/hdr_intrusive_michael_list_rcu_gpi.cpp b/tests/test-hdr/ordered_list/hdr_intrusive_michael_list_rcu_gpi.cpp index 7953a1c4..e985cdc3 100644 --- a/tests/test-hdr/ordered_list/hdr_intrusive_michael_list_rcu_gpi.cpp +++ b/tests/test-hdr/ordered_list/hdr_intrusive_michael_list_rcu_gpi.cpp @@ -65,9 +65,8 @@ namespace ordlist { void IntrusiveMichaelListHeaderTest::RCU_GPI_member_cmp() { typedef member_int_item< RCU > item; - typedef ci::MichaelList< RCU - ,item - ,ci::michael_list::make_traits< + struct traits: public + ci::michael_list::make_traits< ci::opt::hook< ci::michael_list::member_hook< offsetof( item, hMember ), co::gc @@ -75,15 +74,15 @@ namespace ordlist { ,co::compare< cmp > ,ci::opt::disposer< faked_disposer > >::type - > list; + {}; + typedef ci::MichaelList< RCU, item, traits > list; test_rcu_int(); } void IntrusiveMichaelListHeaderTest::RCU_GPI_member_less() { typedef member_int_item< RCU > item; - typedef ci::MichaelList< RCU - ,item - ,ci::michael_list::make_traits< + struct traits: public + ci::michael_list::make_traits< ci::opt::hook< ci::michael_list::member_hook< offsetof( item, hMember ), co::gc @@ -91,15 +90,15 @@ namespace ordlist { ,co::less< less > ,ci::opt::disposer< faked_disposer > >::type - > list; + {}; + typedef ci::MichaelList< RCU, item, traits > list; test_rcu_int(); } void IntrusiveMichaelListHeaderTest::RCU_GPI_member_cmpmix() { typedef member_int_item< RCU > item; - typedef ci::MichaelList< RCU - ,item - ,ci::michael_list::make_traits< + struct traits: public + ci::michael_list::make_traits< ci::opt::hook< ci::michael_list::member_hook< offsetof( item, hMember ), co::gc @@ -108,15 +107,15 @@ namespace ordlist { ,co::compare< cmp > ,ci::opt::disposer< faked_disposer > >::type - > list; + {}; + typedef ci::MichaelList< RCU, item, traits > list; test_rcu_int(); } void IntrusiveMichaelListHeaderTest::RCU_GPI_member_ic() { typedef member_int_item< RCU > item; - typedef ci::MichaelList< RCU - ,item - ,ci::michael_list::make_traits< + struct traits: public + ci::michael_list::make_traits< ci::opt::hook< ci::michael_list::member_hook< offsetof( item, hMember ), co::gc @@ -125,8 +124,8 @@ namespace ordlist { ,ci::opt::disposer< faked_disposer > ,co::item_counter< cds::atomicity::item_counter > >::type - > list; + {}; + typedef ci::MichaelList< RCU, item, traits > list; test_rcu_int(); } - -} +} // namespace ordlist