forked from boostorg/range
[boost][range] - Improved handling of temporary ranges in range algorithms.
[SVN r63903]
This commit is contained in:
@ -37,6 +37,8 @@ namespace boost
|
||||
|
||||
BOOST_CHECK( reference_result == test_result );
|
||||
|
||||
BOOST_CHECK( test_result == boost::binary_search(boost::make_iterator_range(test), 5) );
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS(
|
||||
reference.begin(), reference.end(),
|
||||
test.begin(), test.end()
|
||||
@ -68,6 +70,8 @@ namespace boost
|
||||
|
||||
bool test_result = boost::binary_search(test, 5, pred);
|
||||
|
||||
BOOST_CHECK( test_result == boost::binary_search(boost::make_iterator_range(test), 5, pred) );
|
||||
|
||||
BOOST_CHECK( reference_result == test_result );
|
||||
|
||||
BOOST_CHECK_EQUAL_COLLECTIONS(
|
||||
|
Reference in New Issue
Block a user