forked from boostorg/intrusive
Changes for Boost.1.39
[SVN r51964]
This commit is contained in:
1 parent
e15d6b1cd9
commit
ba8a73d677
21 files changed
+138
-76
No files matched your search
@@ -417,6 +417,28 @@ void test_slist<ValueTraits, Linear, CacheLast>
|
||||
{ int init_values [] = { 2 };
|
||||
TEST_INTRUSIVE_SEQUENCE( init_values, testlist2.begin() ); }
|
||||
}
|
||||
{ //Now test swap when testlist2 is empty
|
||||
list_type testlist1 (&values[0], &values[0] + 2);
|
||||
list_type testlist2;
|
||||
testlist1.swap(testlist2);
|
||||
BOOST_TEST (testlist1.empty());
|
||||
{ int init_values [] = { 1, 2 };
|
||||
TEST_INTRUSIVE_SEQUENCE( init_values, testlist2.begin() ); }
|
||||
}
|
||||
{ //Now test swap when testlist1 is empty
|
||||
list_type testlist2 (&values[0], &values[0] + 2);
|
||||
list_type testlist1;
|
||||
testlist1.swap(testlist2);
|
||||
BOOST_TEST (testlist2.empty());
|
||||
{ int init_values [] = { 1, 2 };
|
||||
TEST_INTRUSIVE_SEQUENCE( init_values, testlist1.begin() ); }
|
||||
}
|
||||
{ //Now test when both are empty
|
||||
list_type testlist1, testlist2;
|
||||
testlist2.swap(testlist1);
|
||||
BOOST_TEST (testlist1.empty() && testlist2.empty());
|
||||
}
|
||||
|
||||
if(!list_type::linear)
|
||||
{
|
||||
list_type testlist1 (&values[0], &values[0] + 2);
|
||||
|
||||
@@ -719,7 +719,6 @@ class test_main_template
|
||||
, false
|
||||
, Incremental
|
||||
>::test_all(data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
@@ -740,7 +739,7 @@ class test_main_template<VoidPointer, false, Incremental>
|
||||
< value_type
|
||||
, typename hooks<VoidPointer>::base_hook_type
|
||||
>::type
|
||||
, true
|
||||
, false
|
||||
, false
|
||||
, Incremental
|
||||
>::test_all(data);
|
||||
@@ -752,7 +751,7 @@ class test_main_template<VoidPointer, false, Incremental>
|
||||
, &value_type::node_
|
||||
>
|
||||
>::type
|
||||
, false
|
||||
, true
|
||||
, false
|
||||
, Incremental
|
||||
>::test_all(data);
|
||||
@@ -761,8 +760,8 @@ class test_main_template<VoidPointer, false, Incremental>
|
||||
< value_type
|
||||
, typename hooks<VoidPointer>::auto_base_hook_type
|
||||
>::type
|
||||
, true
|
||||
, true
|
||||
, false
|
||||
, false
|
||||
, Incremental
|
||||
>::test_all(data);
|
||||
|
||||
|
||||
@@ -623,7 +623,7 @@ class test_main_template<VoidPointer, false, incremental>
|
||||
< value_type
|
||||
, typename hooks<VoidPointer>::auto_base_hook_type
|
||||
>::type
|
||||
, true
|
||||
, false
|
||||
, true
|
||||
, incremental
|
||||
>::test_all(data);
|
||||
|
||||
Reference in new issue
Block a user