mirror of
https://github.com/boostorg/range.git
synced 2025-07-13 04:36:40 +02:00
[boost][range] - Improved handling of temporary ranges in range algorithms.
[SVN r63903]
This commit is contained in:
@ -48,7 +48,17 @@ namespace
|
||||
);
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS( reference.begin(), reference.end(),
|
||||
test.begin(), test.end() );
|
||||
test.begin(), test.end() );
|
||||
|
||||
std::vector<value_type> test2;
|
||||
test_append(
|
||||
boost::remove_copy_if(boost::make_iterator_range(c),
|
||||
std::back_inserter(test2), pred),
|
||||
value_type()
|
||||
);
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS( reference.begin(), reference.end(),
|
||||
test2.begin(), test2.end() );
|
||||
}
|
||||
|
||||
template< class Container >
|
||||
|
Reference in New Issue
Block a user