Boost logo

Boost Users :

Subject: Re: [Boost-users] [Multi-Index] Design Rationale behind erase in ordered_index container
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2012-02-21 16:06:24


Hello Joaquín,

On Tue, Feb 21, 2012 at 9:29 PM, Joaquin M Lopez Munoz <joaquin_at_[hidden]>wrote:

> Ovanes Markarian <om_boost <at> keywallet.com> writes:
>
> >
> > Hello Joaquín,
>
> Hi Ovanes,
> [...]
>

> If you really need to call erase(iterator) with iterators from
> another container, the solution would be to refactor your code
> so as to store pair(iterator,container&)s rather than iterators
> and do the check before actually executing erase().
>

Actually, I am just too carefull. That is not possible how it is used, but
want to be sure. Anyway enabling additional diagnostics might be a good
idea.

With Kind Regards,
Ovanes.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net