Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56956 - branches/release/libs/intrusive/test
From: igaztanaga_at_[hidden]
Date: 2009-10-17 11:24:23


Author: igaztanaga
Date: 2009-10-17 11:24:22 EDT (Sat, 17 Oct 2009)
New Revision: 56956
URL: http://svn.boost.org/trac/boost/changeset/56956

Log:
Fixes for 1.41
Text files modified:
   branches/release/libs/intrusive/test/generic_assoc_test.hpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: branches/release/libs/intrusive/test/generic_assoc_test.hpp
==============================================================================
--- branches/release/libs/intrusive/test/generic_assoc_test.hpp (original)
+++ branches/release/libs/intrusive/test/generic_assoc_test.hpp 2009-10-17 11:24:22 EDT (Sat, 17 Oct 2009)
@@ -399,10 +399,12 @@
    {
       assoc_type testset;
       typedef typename std::vector<value_type>::iterator vec_iterator;
- for(vec_iterator it(--values.end()), itend(--values.begin())
- ; it != itend
- ; --it){
+
+ for(vec_iterator it(--values.end()); true; --it){
          testset.push_front(*it);
+ if(it == values.begin()){
+ break;
+ }
       }
       BOOST_TEST(testset.size() == values.size());
       TEST_INTRUSIVE_SEQUENCE_EXPECTED(values, testset.begin());


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