|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-06-15 18:59:42
"David Abrahams" <dave_at_[hidden]> wrote in message
news:u1x73meya.fsf_at_boost-consulting.com...
| "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.
it does! I used the operators helper classes, but moved away from them due to
portability
reasons. Anyway, I will look into this in the future.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk