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) {}