Boost logo

Boost :

From: John E. Potter (jpotter_at_[hidden])
Date: 2000-11-20 08:01:38


On Mon, 20 Nov 2000, John Maddock wrote:

> For example an input iterator has to be used in a particular way
> - with alternating calls to operator++ and operator*

I don't think so. That is the only safe way to use an output
iterator; however, it does not apply to input iterator. Example: wc -w

cout << distance(istream_iterator<string>(cin),
                 istream_iterator<string>()) << endl;

I see misconcept checking as a real problem. It has been reported that
the stl_port rejects lower_bound when the target type does not match
the iterator value_type. In spite of the fact that the compare object
supports target type, value_type in either order.

John


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