Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64088 - trunk/libs/range/test/algorithm_test
From: neil_at_[hidden]
Date: 2010-07-17 08:25:59


Author: neilgroves
Date: 2010-07-17 08:25:57 EDT (Sat, 17 Jul 2010)
New Revision: 64088
URL: http://svn.boost.org/trac/boost/changeset/64088

Log:
Removed invalid comparison of invalidated iterators in the Boost.Range partition test case.
Text files modified:
   trunk/libs/range/test/algorithm_test/partition.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/range/test/algorithm_test/partition.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_test/partition.cpp (original)
+++ trunk/libs/range/test/algorithm_test/partition.cpp 2010-07-17 08:25:57 EDT (Sat, 17 Jul 2010)
@@ -47,10 +47,10 @@
                 Container cont2(old_cont);
                 iter_t result = boost::partition(cont, UnaryPredicate());
 
- iter_t temp_result = boost::partition(cont2, UnaryPredicate());
+ boost::partition(cont2, UnaryPredicate());
                 cont2 = old_cont;
- BOOST_CHECK( temp_result == boost::partition(
- boost::make_iterator_range(cont2), UnaryPredicate()) );
+ boost::partition(
+ boost::make_iterator_range(cont2), UnaryPredicate());
 
                 BOOST_CHECK_EQUAL_COLLECTIONS( cont.begin(), cont.end(),
                                                cont2.begin(), cont2.end() );


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