Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-04-06 11:35:34


On Thu, 5 Apr 2001, David Abrahams wrote:
abraha> > Well, if you could get at a reference to the real part, then you could use
abraha> > the projection iterator adaptor. But, as you point out below, you can't.
abraha> > So you're stuck with the ugly proxy thing (you'd be stuck with this
abraha> > whether or not you used iterator adaptor). You'll need to use the proxy
abraha> > object as the Reference type of the iterator adaptor. And you'll be stuck
abraha> > with using input_iterator_tag as the iterator_category :(
abraha> >
abraha> > (yet another example of the need for my new iterator categories and
abraha> > concepts)
abraha>
abraha> Why bother with the proxy if you're just doing input iterators? Do you need
abraha> to write through the Reference type?

I think he wanted to both read and write to the iterator... but there
isn't a tag for that... I suppose he could create his own which would
inherit from both input_iterator_tag and output_iterator_tag.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------


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