forked from boostorg/regex
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
|
#endif
|
||||||
|
|
||||||
template <class S>
|
template <class S>
|
||||||
class string_out_iterator :
|
class string_out_iterator
|
||||||
public std::iterator<std::output_iterator_tag, void, void, void, void>
|
#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;
|
S* out;
|
||||||
public:
|
public:
|
||||||
string_out_iterator(S& s) : out(&s) {}
|
string_out_iterator(S& s) : out(&s) {}
|
||||||
|
Reference in New Issue
Block a user