Removed invalid comparison of invalidated iterators in the Boost.Range partition test case.

[SVN r64088]
This commit is contained in:
Neil Groves
2010-07-17 12:25:57 +00:00
parent 109bf20484
commit a06f11589f

View File

@ -47,10 +47,10 @@ namespace boost
Container cont2(old_cont); Container cont2(old_cont);
iter_t result = boost::partition(cont, UnaryPredicate()); iter_t result = boost::partition(cont, UnaryPredicate());
iter_t temp_result = boost::partition(cont2, UnaryPredicate()); boost::partition(cont2, UnaryPredicate());
cont2 = old_cont; cont2 = old_cont;
BOOST_CHECK( temp_result == boost::partition( boost::partition(
boost::make_iterator_range(cont2), UnaryPredicate()) ); boost::make_iterator_range(cont2), UnaryPredicate());
BOOST_CHECK_EQUAL_COLLECTIONS( cont.begin(), cont.end(), BOOST_CHECK_EQUAL_COLLECTIONS( cont.begin(), cont.end(),
cont2.begin(), cont2.end() ); cont2.begin(), cont2.end() );