$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.