{\r
typedef typename Queue::value_type value_type;\r
val.resize( 100 );\r
- for ( int i = 0; i < val.size(); ++i )
- val[i].nValue = i;
+ for ( size_t i = 0; i < val.size(); ++i )
+ val[i].nValue = static_cast<int>( i );
\r
ASSERT_TRUE( q.empty());\r
ASSERT_CONTAINER_SIZE( q, 0 );\r
// check that Disposer has not been called
Queue::gc::force_dispose();
- for ( int i = 0; i < val.size(); ++i ) {
+ for ( size_t i = 0; i < val.size(); ++i ) {
EXPECT_EQ( val[i].nDisposeCount, 0 );
EXPECT_EQ( val[i].nDispose2Count, 0 );
}
\r
// clear
- for ( int i = 0; i < val.size(); ++i )
+ for ( size_t i = 0; i < val.size(); ++i )
EXPECT_TRUE( q.push( val[i] ) );
EXPECT_CONTAINER_SIZE( q, val.size());
EXPECT_TRUE( !q.empty() );
list/hdr_michael_kv_rcu_shb.cpp\r
list/hdr_michael_kv_rcu_sht.cpp)\r
\r
-set(CDS_TESTHDR_QUEUE\r
- queue/hdr_queue_register.cpp\r
- queue/hdr_intrusive_fcqueue.cpp\r
- queue/hdr_intrusive_segmented_queue_hp.cpp\r
- queue/hdr_intrusive_segmented_queue_dhp.cpp\r
- queue/hdr_intrusive_tsigas_cycle_queue.cpp\r
- queue/hdr_intrusive_vyukovmpmc_cycle_queue.cpp\r
- queue/hdr_basketqueue_hp.cpp\r
- queue/hdr_basketqueue_dhp.cpp\r
- queue/hdr_fcqueue.cpp\r
- queue/hdr_moirqueue_hp.cpp\r
- queue/hdr_moirqueue_dhp.cpp\r
- queue/hdr_msqueue_hp.cpp\r
- queue/hdr_msqueue_dhp.cpp\r
- queue/hdr_optimistic_hp.cpp\r
- queue/hdr_optimistic_dhp.cpp\r
- queue/hdr_rwqueue.cpp\r
- queue/hdr_segmented_queue_hp.cpp\r
- queue/hdr_segmented_queue_dhp.cpp\r
- queue/hdr_tsigas_cycle_queue.cpp\r
- queue/hdr_vyukov_mpmc_cyclic.cpp)\r
-\r
set(CDS_TESTHDR_SET\r
set/hdr_intrusive_feldman_hashset_hp.cpp\r
set/hdr_intrusive_feldman_hashset_dhp.cpp\r
list/hdr_intrusive_michael_list_rcu_shb.cpp\r
list/hdr_intrusive_michael_list_rcu_sht.cpp)\r
\r
-set(CDS_TESTHDR_OFFSETOF_QUEUE\r
- queue/hdr_intrusive_basketqueue_hp.cpp\r
- queue/hdr_intrusive_basketqueue_dhp.cpp\r
- queue/hdr_intrusive_moirqueue_hp.cpp\r
- queue/hdr_intrusive_moirqueue_dhp.cpp\r
- queue/hdr_intrusive_msqueue_hp.cpp\r
- queue/hdr_intrusive_msqueue_dhp.cpp\r
- queue/hdr_intrusive_optimisticqueue_hp.cpp\r
- queue/hdr_intrusive_optimisticqueue_dhp.cpp)\r
-\r
set(CDS_TESTHDR_OFFSETOF_TREE\r
tree/hdr_intrusive_ellen_bintree_hp_member.cpp\r
tree/hdr_intrusive_ellen_bintree_dhp_member.cpp\r
tree/hdr_intrusive_ellen_bintree_rcu_sht_member.cpp)\r
\r
set(CDS_TESTHDR_OFFSETOF_SOURCES\r
- ${CDS_TESTHDR_OFFSETOF_QUEUE}\r
${CDS_TESTHDR_OFFSETOF_MAP}\r
${CDS_TESTHDR_OFFSETOF_SET}\r
${CDS_TESTHDR_OFFSETOF_LIST}\r
endif(CMAKE_COMPILER_IS_GNUCC)\r
\r
set(CDS_TESTHDR_SOURCES\r
- ${CDS_TESTHDR_QUEUE}\r
${CDS_TESTHDR_MAP}\r
${CDS_TESTHDR_LIST}\r
${CDS_TESTHDR_SET}\r