From 087069d21528fe81dbd0fd2fc37a8fba060f2a8a Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Wed, 7 Feb 2001 02:44:18 +0000 Subject: [PATCH] added concept check for the default iterator policy [SVN r8990] --- iterator_adaptor_test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iterator_adaptor_test.cpp b/iterator_adaptor_test.cpp index 42938fe..332bd1b 100644 --- a/iterator_adaptor_test.cpp +++ b/iterator_adaptor_test.cpp @@ -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 + > >(); + // Test the iterator_adaptors { My::iterator i = array;