From 9225fa8531c279d925063bcc980a6b8309ac3a45 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 3 Feb 2002 11:44:37 +0000 Subject: [PATCH] Removed unnecessary template parameter from ostream_iterator so that it works with gcc2.9x now. [SVN r12666] --- example/snippets/regex_merge_example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/snippets/regex_merge_example.cpp b/example/snippets/regex_merge_example.cpp index 505b8ce0..f9faa10a 100644 --- a/example/snippets/regex_merge_example.cpp +++ b/example/snippets/regex_merge_example.cpp @@ -72,12 +72,12 @@ int main(int argc, const char** argv) // strip '<' and '>' first by outputting to a // temporary string stream std::ostringstream t(std::ios::out | std::ios::binary); - std::ostream_iterator oi(t); + std::ostream_iterator oi(t); boost::regex_merge(oi, in.begin(), in.end(), e2, pre_format); // then output to final output stream // adding syntax highlighting: std::string s(t.str()); - std::ostream_iterator out(os); + std::ostream_iterator out(os); boost::regex_merge(out, s.begin(), s.end(), e1, format_string); os << footer_text; }