Boost logo

Boost :

From: the_dilster (dylan_at_[hidden])
Date: 2001-12-06 21:11:38


--- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
>
> ----- Original Message -----
> From: "the_dilster" <dylan_at_m...>
> To: <boost_at_y...>
> > >
> > The problem was the interface - I wanted to be able to write no
more
> > than above to use it, or wasn't worth the effort.
>
> Oh, well what you have below isn't an iterator, though: the pointer,
> reference, and value_type are wrong, unless the member function
happens to
> return a reference to C. Anyone can make a simple "iterator", but
making an
> iterator can be tricky ;-)
>
Well it wasn't meant to be a final implementation, overriding the
value_type/pointer/reference typedef's is pretty straight forward
though. I don't see how this affects my problem with the current
iterator_adaptor library (specifically the use of
XXXgenerator<...>::type).

Dylan


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