Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-04-04 08:10:07

On 4/4/06, Christopher Kohlhoff <chris_at_[hidden]> wrote:
> Hi Felipe,

Hello Christopher,


> No problem, I'll change it as soon as sourceforge cvs is working again.
> However, I do wonder if it's STLPort's checked iterator support that
> has the bug. specifies the effects of clear(), and says:

I dont know very much to confirm, but really looks like a bug in
STLPort checked iterator.

> Invalidates only the iterators and references to the erased elements.
> To me this means that the iterator returned by end() is not invalidated
> by the call to clear(), since that iterator does not correspond to any
> element that can be erased. Perhaps there is another part of the
> standard that says otherwise?

I think you're right. But, IMO, it is a very trivial workaround, anyway...

> Cheers,
> Chris

Thank you very much,

Felipe Magno de Almeida

Boost list run by bdawes at, gregod at, cpdaniel at, john at