|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-06-17 06:24:33
"Thorsten Ottosen" <nesotto_at_[hidden]> writes:
> "Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message
> news:d8qf4a$ac7$1_at_sea.gmane.org...
> | "David Abrahams" <dave_at_[hidden]> wrote in message
>
> || 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.
>
> As for the map_iterator, then the interface has changed, so the
> adapters don't work. (the iterator supports .key() and * returns a
> reference to the value type, and not a pair)
Then just build your own using iterator_adaptor.
> As for void_ptr_iterator, I guess it could be replaced with
> transform_iterator. I'm not sure if portability will suffer because
> of it, but I supsect it.
Why?
> I used operator.hpp to begin with, but moved awau due to portability
> reasons (vc6 stuff, I think).
The two have little to do with one another. The iterators library is
highly portable.
-- 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