forked from boostorg/range
[boost][range] - Improved handling of temporary ranges in range algorithms.
[SVN r63903]
This commit is contained in:
1 parent
ef000176d8
commit
74a01a4487
57 files changed
+1178
-216
No files matched your search
@@ -70,8 +70,11 @@ namespace boost
|
||||
|
||||
pair_t test_result = boost::equal_range(test, 5);
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test, test_result);
|
||||
check_result(reference, reference_result, test, test_result);
|
||||
|
||||
pair_t test_result2 = boost::equal_range(boost::make_iterator_range(test), 5);
|
||||
|
||||
check_result(reference, reference_result, test, test_result2);
|
||||
}
|
||||
|
||||
template<class Container, class BinaryPredicate>
|
||||
@@ -107,8 +110,11 @@ namespace boost
|
||||
|
||||
pair_t test_result = boost::equal_range(test, 5, BinaryPredicate());
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test, test_result);
|
||||
check_result(reference, reference_result, test, test_result);
|
||||
|
||||
pair_t test_result2 = boost::equal_range(boost::make_iterator_range(test), 5, BinaryPredicate());
|
||||
|
||||
check_result(reference, reference_result, test, test_result2);
|
||||
}
|
||||
|
||||
template<class Container>
|
||||
|
||||
Reference in new issue
Block a user