Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56957 - trunk/libs/intrusive/test
From: igaztanaga_at_[hidden]
Date: 2009-10-17 11:24:38


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

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

Modified: trunk/libs/intrusive/test/generic_assoc_test.hpp
==============================================================================
--- trunk/libs/intrusive/test/generic_assoc_test.hpp (original)
+++ trunk/libs/intrusive/test/generic_assoc_test.hpp 2009-10-17 11:24:38 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