|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82364 - in trunk/libs/intrusive: example test
From: igaztanaga_at_[hidden]
Date: 2013-01-05 11:53:19
Author: igaztanaga
Date: 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
New Revision: 82364
URL: http://svn.boost.org/trac/boost/changeset/82364
Log:
Fix unused variable warnings in tests
Text files modified:
trunk/libs/intrusive/example/doc_any_hook.cpp | 4 ++--
trunk/libs/intrusive/example/doc_avl_set.cpp | 4 ++--
trunk/libs/intrusive/example/doc_how_to_use.cpp | 4 ++--
trunk/libs/intrusive/example/doc_list.cpp | 4 ++--
trunk/libs/intrusive/example/doc_set.cpp | 4 ++--
trunk/libs/intrusive/example/doc_sg_set.cpp | 4 ++--
trunk/libs/intrusive/example/doc_slist.cpp | 4 ++--
trunk/libs/intrusive/example/doc_splay_set.cpp | 6 +++---
trunk/libs/intrusive/example/doc_treap_set.cpp | 4 ++--
trunk/libs/intrusive/example/doc_unordered_set.cpp | 3 +--
trunk/libs/intrusive/test/any_test.cpp | 4 ++--
trunk/libs/intrusive/test/test_container.hpp | 4 ++--
12 files changed, 24 insertions(+), 25 deletions(-)
Modified: trunk/libs/intrusive/example/doc_any_hook.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_any_hook.cpp (original)
+++ trunk/libs/intrusive/example/doc_any_hook.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -50,8 +50,8 @@
base_slist.push_front(*it), member_list.push_back(*it);
//Now test lists
- BaseSList::iterator bit(base_slist.begin()), bitend(base_slist.end());
- MemberList::reverse_iterator mrit(member_list.rbegin()), mritend(member_list.rend());
+ BaseSList::iterator bit(base_slist.begin());
+ MemberList::reverse_iterator mrit(member_list.rbegin());
std::vector<MyClass>::reverse_iterator rit(values.rbegin()), ritend(values.rend());
//Test the objects inserted in the base hook list
Modified: trunk/libs/intrusive/example/doc_avl_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_avl_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_avl_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -69,8 +69,8 @@
//Now test avl_sets
{
- BaseSet::reverse_iterator rbit(baseset.rbegin()), rbitend(baseset.rend());
- MemberMultiset::iterator mit(membermultiset.begin()), mitend(membermultiset.end());
+ BaseSet::reverse_iterator rbit(baseset.rbegin());
+ MemberMultiset::iterator mit(membermultiset.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook avl_set
Modified: trunk/libs/intrusive/example/doc_how_to_use.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_how_to_use.cpp (original)
+++ trunk/libs/intrusive/example/doc_how_to_use.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -57,8 +57,8 @@
//Now test lists
{
- BaseList::reverse_iterator rbit(baselist.rbegin()), rbitend(baselist.rend());
- MemberList::iterator mit(memberlist.begin()), mitend(memberlist.end());
+ BaseList::reverse_iterator rbit(baselist.rbegin());
+ MemberList::iterator mit(memberlist.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook list
Modified: trunk/libs/intrusive/example/doc_list.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_list.cpp (original)
+++ trunk/libs/intrusive/example/doc_list.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -58,8 +58,8 @@
//Now test lists
{
- BaseList::reverse_iterator rbit(baselist.rbegin()), rbitend(baselist.rend());
- MemberList::iterator mit(memberlist.begin()), mitend(memberlist.end());
+ BaseList::reverse_iterator rbit(baselist.rbegin());
+ MemberList::iterator mit(memberlist.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook list
Modified: trunk/libs/intrusive/example/doc_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -69,8 +69,8 @@
//Now test sets
{
- BaseSet::reverse_iterator rbit(baseset.rbegin()), rbitend(baseset.rend());
- MemberMultiset::iterator mit(membermultiset.begin()), mitend(membermultiset.end());
+ BaseSet::reverse_iterator rbit(baseset.rbegin());
+ MemberMultiset::iterator mit(membermultiset.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook set
Modified: trunk/libs/intrusive/example/doc_sg_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_sg_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_sg_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -68,8 +68,8 @@
//Now test sg_sets
{
- BaseSet::reverse_iterator rbit(baseset.rbegin()), rbitend(baseset.rend());
- MemberMultiset::iterator mit(membermultiset.begin()), mitend(membermultiset.end());
+ BaseSet::reverse_iterator rbit(baseset.rbegin());
+ MemberMultiset::iterator mit(membermultiset.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook sg_set
Modified: trunk/libs/intrusive/example/doc_slist.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_slist.cpp (original)
+++ trunk/libs/intrusive/example/doc_slist.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -60,8 +60,8 @@
//Now test lists
{
- BaseList::iterator bit(baselist.begin()), bitend(baselist.end());
- MemberList::iterator mit(memberlist.begin()), mitend(memberlist.end());
+ BaseList::iterator bit(baselist.begin());
+ MemberList::iterator mit(memberlist.begin());
VectRit rit(values.rbegin()), ritend(values.rend());
VectIt it(values.begin()), itend(values.end());
Modified: trunk/libs/intrusive/example/doc_splay_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_splay_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_splay_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -72,9 +72,9 @@
//Now test sets
{
- BaseSplaySet::reverse_iterator rbit(baseset.rbegin()), rbitend(baseset.rend());
- BaseBsSplaySet::iterator bsit(bsbaseset.begin()), bsitend(bsbaseset.end());
- MemberSplayMultiset::iterator mit(membermultiset.begin()), mitend(membermultiset.end());
+ BaseSplaySet::reverse_iterator rbit(baseset.rbegin());
+ BaseBsSplaySet::iterator bsit(bsbaseset.begin());
+ MemberSplayMultiset::iterator mit(membermultiset.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook set
Modified: trunk/libs/intrusive/example/doc_treap_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_treap_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_treap_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -79,8 +79,8 @@
//Now test treap_sets
{
- BaseSet::reverse_iterator rbit(baseset.rbegin()), rbitend(baseset.rend());
- MemberMultiset::iterator mit(membermultiset.begin()), mitend(membermultiset.end());
+ BaseSet::reverse_iterator rbit(baseset.rbegin());
+ MemberMultiset::iterator mit(membermultiset.begin());
VectIt it(values.begin()), itend(values.end());
//Test the objects inserted in the base hook treap_set
Modified: trunk/libs/intrusive/example/doc_unordered_set.cpp
==============================================================================
--- trunk/libs/intrusive/example/doc_unordered_set.cpp (original)
+++ trunk/libs/intrusive/example/doc_unordered_set.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -71,8 +71,7 @@
base_set.insert(*it);
//Now insert values's and values2's elements in the unordered_multiset
- for(VectIt it(values.begin()), itend(values.end()),
- it2(values2.begin()),itend2(values2.end())
+ for(VectIt it(values.begin()), itend(values.end()), it2(values2.begin())
; it != itend; ++it, ++it2){
member_multi_set.insert(*it);
member_multi_set.insert(*it2);
Modified: trunk/libs/intrusive/test/any_test.cpp
==============================================================================
--- trunk/libs/intrusive/test/any_test.cpp (original)
+++ trunk/libs/intrusive/test/any_test.cpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -164,8 +164,8 @@
//Now test lists
{
- BaseList::iterator bit(baselist.begin()), bitend(baselist.end());
- MemberList::iterator mit(memberlist.begin()), mitend(memberlist.end());
+ BaseList::iterator bit(baselist.begin());
+ MemberList::iterator mit(memberlist.begin());
VectRit rit(values.rbegin()), ritend(values.rend());
VectIt it(values.begin()), itend(values.end());
Modified: trunk/libs/intrusive/test/test_container.hpp
==============================================================================
--- trunk/libs/intrusive/test/test_container.hpp (original)
+++ trunk/libs/intrusive/test/test_container.hpp 2013-01-05 11:53:17 EST (Sat, 05 Jan 2013)
@@ -57,7 +57,7 @@
for(i = 0; i < num_elem; ++i){
++it;
}
- BOOST_TEST( it == c.end() );
+ BOOST_TEST( it == itend );
BOOST_TEST( c.size() == i );
}
@@ -69,7 +69,7 @@
for(i = 0; i < num_elem; ++i){
++it;
}
- BOOST_TEST( it == c.cend() );
+ BOOST_TEST( it == itend );
BOOST_TEST( c.size() == i );
}
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk