Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-10-31 15:00:35


Joel Young wrote:
>
> The iterator_adaptor_examples.cpp doesn't compile using
> gcc-2.95.3 or gcc-3.0.1 under either Linux or Solaris.
>
> here are the error messages:
>
> 2.95.3:
>
> iterator_adaptor_examples.cpp: In function `int main(int, char **)':
> iterator_adaptor_examples.cpp:26: ANSI C++ forbids declaration `transform_iterator' with no type

Compiles fine here with gcc 2.95.3 and gcc 3.0.1 on Linux,
latest CVS version of boost.

Also, I cannot find "transform_iterator" in line 26 of the mentioned file,
that section of the file looks like this for me:

  typedef std::binder1st< std::multiplies<int> > Function;
  typedef boost::transform_iterator_generator<Function, int*
>::type doubling_iterator;

Jens Maurer


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