mirror of
https://github.com/boostorg/range.git
synced 2025-07-13 20:56:44 +02:00
Removed invalid comparison of invalidated iterators in the Boost.Range partition test case.
[SVN r64088]
This commit is contained in:
@ -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() );
|
||||||
|
Reference in New Issue
Block a user