From c959cf787058f7fe11115f91e7f67b149b4f095c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 8 Feb 2001 04:46:41 +0000 Subject: [PATCH] bug fixes [SVN r9031] --- iterator_adaptor_test.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/iterator_adaptor_test.cpp b/iterator_adaptor_test.cpp index fee03fb..6f30d6a 100644 --- a/iterator_adaptor_test.cpp +++ b/iterator_adaptor_test.cpp @@ -308,7 +308,7 @@ main() boost::random_access_iterator_test(i, N, array); #ifdef BOOST_NO_STD_ITERATOR_TRAITS - tyepdef boost::iterator ReverseTraits; + typedef boost::iterator ReverseTraits; boost::random_access_iterator_test(boost::make_reverse_iterator(reversed + N, ReverseTraits()), N, array); #else boost::random_access_iterator_test(boost::make_reverse_iterator(reversed + N), N, array); @@ -345,7 +345,12 @@ main() FilterIter i(array, FilterPolicies(one_or_four(), array + N)); boost::forward_iterator_test(i, dummyT(1), dummyT(4)); - boost::forward_iterator_test(boost::make_filter_iterator(array, array + N, one_or_four()), dummyT(1), dummyT(4)); + boost::forward_iterator_test(boost::make_filter_iterator( + array, array + N, one_or_four() +#ifdef BOOST_NO_STD_ITERATOR_TRAITS + , boost::iterator() +#endif + ), dummyT(1), dummyT(4)); } std::cout << "test successful " << std::endl; return 0;