mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
added concept check for the default iterator policy
[SVN r8990]
This commit is contained in:
parent
826a6dd114
commit
087069d215
@ -89,6 +89,15 @@ main()
|
|||||||
// sanity check, if this doesn't pass the test is buggy
|
// sanity check, if this doesn't pass the test is buggy
|
||||||
boost::random_access_iterator_test(array,N,array);
|
boost::random_access_iterator_test(array,N,array);
|
||||||
|
|
||||||
|
// Check that the policy concept checks and the default policy
|
||||||
|
// implementation match up.
|
||||||
|
boost::function_requires<
|
||||||
|
boost::RandomAccessIteratorPoliciesConcept<
|
||||||
|
boost::default_iterator_policies, int*,
|
||||||
|
boost::iterator<std::random_access_iterator_tag, int, std::ptrdiff_t,
|
||||||
|
int*, int&>
|
||||||
|
> >();
|
||||||
|
|
||||||
// Test the iterator_adaptors
|
// Test the iterator_adaptors
|
||||||
{
|
{
|
||||||
My::iterator i = array;
|
My::iterator i = array;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user