Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-02-20 23:16:09


On 2/20/06, Bill Buklis <boostuser_at_[hidden]> wrote:

[snip]

> The only point of #1 is so that the iterators behave exactly like std::map
> iterators, right? One the one hand, that would be nice for consistency with
> std::map, but then this is a different class with slightly different uses,
> so I personally don't mind if it has slightly different characteristics. And
> the usefulness of operator-> as T* outweighs the need for identical
> behavior, IMO.

I had some issues with using std::ptr_map in generic algorithms because of this.
I think that the inner typedef's of std::ptr_map, wrt iterator concept
modelling, must be carefully choosed too. That can break a lot of
generic code to not work on ptr_map or other ptr_containers.

[snip]

--
Felipe Magno de Almeida

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