mirror of
https://github.com/boostorg/range.git
synced 2026-01-25 00:12:22 +01:00
[boost][range] - Improved handling of temporary ranges in range algorithms.
[SVN r63903]
This commit is contained in:
@@ -62,6 +62,26 @@ namespace boost
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(boost::make_iterator_range(cont1),
|
||||
cont2, test_cont.begin());
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(cont1,
|
||||
boost::make_iterator_range(cont2),
|
||||
test_cont.begin());
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(boost::make_iterator_range(cont1),
|
||||
boost::make_iterator_range(cont2),
|
||||
test_cont.begin());
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
}
|
||||
|
||||
template<class Container, class BinaryPredicate>
|
||||
@@ -100,6 +120,26 @@ namespace boost
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(boost::make_iterator_range(cont1),
|
||||
cont2, test_cont.begin(), pred);
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(cont1,
|
||||
boost::make_iterator_range(cont2),
|
||||
test_cont.begin(), pred);
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
|
||||
test_result = boost::set_union(boost::make_iterator_range(cont1),
|
||||
boost::make_iterator_range(cont2),
|
||||
test_cont.begin(), pred);
|
||||
|
||||
check_result(reference, reference_result,
|
||||
test_cont, test_result);
|
||||
}
|
||||
|
||||
template<class Container1, class Container2>
|
||||
|
||||
Reference in New Issue
Block a user