Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-02-03 12:33:20


I've applied the following trivial patch to make string_out_iterator (in
libs/regex/example/timer/regex_timer.cpp) a real output iterator. The context
diff follows.

Note: the concept checking in libcomo throws fits without this patch.

        Doug

Index: regex_timer.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/regex/example/timer/regex_timer.cpp,v
retrieving revision 1.8
diff -c -3 -p -r1.8 regex_timer.cpp
*** regex_timer.cpp 2002/02/03 11:43:23 1.8
--- regex_timer.cpp 2002/02/03 17:14:11
*************** using std::streambuf;
*** 32,37 ****
--- 32,38 ----
  #include <algorithm>
  #include <string>
  #include <deque>
+ #include <iterator>
  #include <boost/config.hpp>
  #include <boost/regex.hpp>
  #include <boost/timer.hpp>
*************** ostream& operator << (ostream& os, const
*** 58,64 ****
  #endif

  template <class S>
! class string_out_iterator
  {
     S* out;
  public:
--- 59,66 ----
  #endif

  template <class S>
! class string_out_iterator :
! public std::iterator<std::output_iterator_tag, void, void, void, void>
  {
     S* out;
  public:


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk