added concept check for the default iterator policy

[SVN r8990]
This commit is contained in:
Jeremy Siek 2001-02-07 02:44:18 +00:00
parent 826a6dd114
commit 087069d215

View File

@ -89,6 +89,15 @@ main()
// sanity check, if this doesn't pass the test is buggy
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
{
My::iterator i = array;