Handle standard libraries that do not support std::iterator

[SVN r12686]
This commit is contained in:
Douglas Gregor
2002-02-04 12:54:17 +00:00
parent a108657449
commit f79497c625

View File

@ -59,9 +59,19 @@ ostream& operator << (ostream& os, const std::wstring& s)
#endif
template <class S>
class string_out_iterator :
public std::iterator<std::output_iterator_tag, void, void, void, void>
class string_out_iterator
#ifndef BOOST_NO_STD_ITERATOR
: public std::iterator<std::output_iterator_tag, void, void, void, void>
#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) {}