From ee631c02eb369eec0c9b229189dc07a9f9b1576f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 18 Jul 2004 10:20:56 +0000 Subject: [PATCH] Need to make string_out_iterator a "real" iterator type to keep commeau compiler happy. [SVN r23722] --- include/boost/regex/v4/regex_format.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/regex/v4/regex_format.hpp b/include/boost/regex/v4/regex_format.hpp index 872fbec2..15b29707 100644 --- a/include/boost/regex/v4/regex_format.hpp +++ b/include/boost/regex/v4/regex_format.hpp @@ -563,6 +563,12 @@ class string_out_iterator { S* out; public: + typedef typename S::difference_type difference_type; + typedef typename S::value_type value_type; + typedef typename S::pointer pointer; + typedef typename S::reference reference; + typedef typename std::output_iterator_tag iterator_category; + string_out_iterator(S& s) : out(&s) {} string_out_iterator& operator++() { return *this; } string_out_iterator& operator++(int) { return *this; }