Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-06-15 17:29:33


"Thorsten Ottosen" <nesotto_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:uhdfzphdr.fsf_at_boost-consulting.com...
> | "Thorsten Ottosen" <nesotto_at_[hidden]> writes:
>
> | > would it be correct to implement the binary operators in my "wrapping"
> | > iterators
> | > as function templates.
> |
> | It would be correct to use iterator_adaptor. Why aren't you doing
> | that?
>
> because I need to apply a cast form void* to T* in operator*() and
> operator->().

Seems like a perfect job for transform_iterator to me.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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