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;