Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2423: map_array insert has invalid assertion
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-20 21:44:09
#2423: map_array insert has invalid assertion
-------------------------------------------------------+--------------------
Reporter: benson margulies <bimargulies_at_[hidden]> | Owner: guwi17
Type: Bugs | Status: assigned
Milestone: Boost 1.37.0 | Component: uBLAS
Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------
Changes (by guwi17):
* status: new => assigned
Comment:
Replying to [ticket:2423 benson margulies <bimargulies_at_[hidden]>]:
>
> The external logic check in here appears to be wrong. The check is
applied when the code sees the need to insert a new element in the
underlying representation 'in the middle' -- the lower bound does not
return end, and and the slot it returns does not have the correct index.
The check requires the map to be empty or that the iterator is at the end,
thus refusing to insert into the middle.
>
I see your point. Can you provide an example where the check fails
although it should succeed?
(BTW: No one seems to use map_array any more because std::map can be used
instead.)
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2423#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC