mirror of
https://github.com/boostorg/range.git
synced 2025-07-12 12:16:38 +02:00
[boost][range] - Improved handling of temporary ranges in range algorithms.
[SVN r63903]
This commit is contained in:
@ -43,7 +43,16 @@ namespace boost
|
||||
std::distance(reference.begin(), reference_it) );
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS( reference.begin(), reference.end(),
|
||||
test.begin(), test.end() );
|
||||
test.begin(), test.end() );
|
||||
|
||||
Container test2(c);
|
||||
iterator_t test_it2 = boost::remove(test2, to_remove);
|
||||
|
||||
BOOST_CHECK_EQUAL( std::distance(test2.begin(), test_it2),
|
||||
std::distance(reference.begin(), reference_it) );
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS( reference.begin(), reference.end(),
|
||||
test2.begin(), test2.end() );
|
||||
}
|
||||
|
||||
template< class Container >
|
||||
|
Reference in New Issue
Block a user