From f79497c6259f18b9009287bc26c3c3088239c0dd Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 4 Feb 2002 12:54:17 +0000 Subject: [PATCH] Handle standard libraries that do not support std::iterator [SVN r12686] --- example/timer/regex_timer.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/example/timer/regex_timer.cpp b/example/timer/regex_timer.cpp index 2ded700c..8dd4c3f2 100644 --- a/example/timer/regex_timer.cpp +++ b/example/timer/regex_timer.cpp @@ -59,9 +59,19 @@ ostream& operator << (ostream& os, const std::wstring& s) #endif template -class string_out_iterator : - public std::iterator +class string_out_iterator +#ifndef BOOST_NO_STD_ITERATOR + : public std::iterator +#endif // ndef BOOST_NO_STD_ITERATOR { +#ifdef BOOST_NO_STD_ITERATOR + typedef std::output_iterator_tag iterator_category; + typedef void value_type; + typedef void difference_type; + typedef void pointer; + typedef void reference; +#endif // BOOST_NO_STD_ITERATOR + S* out; public: string_out_iterator(S& s) : out(&s) {}