Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-06-13 11:48:34


----- Original Message -----
From: "Daryle Walker" <darylew_at_[hidden]>

> on 6/13/01 6:22 AM, Aleksey Gurtovoy at alexy_at_[hidden] wrote:
> > Self-proxing is the most common and easy way to implement output
iterators,
> > and IMO it would be reasonable for 'output_iterator_helper' to provide a
> > default support for the idiom, if this does not prevent other usages.
AFAIK,
> > the above form doesn't. Basically, it's what we are using here at work,
and
> > I would love to replace it by the boost code instead :).
>
> But so far, we just had enough code to support the secondary operators.
Now
> you want to add code to implement primary operators; that sounds like a
big
> leap. What if an iterator doesn't want to use self-proxying?

No problem; the iterator's own implementation of operator* and operator++
will get used and the ones supplied by output_iterator_helper will never be
instantiated.

-Dave


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