mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 20:17:24 +02:00
Handle standard libraries that do not support std::iterator
[SVN r12686]
This commit is contained in:
@ -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) {}
|
||||
|
Reference in New Issue
Block a user