Subject: [Boost-bugs] [Boost C++ Libraries] #9987: boost icl throws on gaps
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-01 20:56:10
#9987: boost icl throws on gaps
------------------------------+-------------------------
Reporter: xfenginc@⦠| Owner: jofaber
Type: Bugs | Status: new
Milestone: To Be Determined | Component: ICL
Version: Boost 1.55.0 | Severity: Showstopper
Keywords: |
------------------------------+-------------------------
void overlap_counter()
{
typedef interval_map<int, int> OverlapCounterT;
OverlapCounterT overlap_counter;
discrete_interval<int> inter_val;
int l[10]={1,1,1};
int r[10]={2,3,3};
for(int i = 0; i < 3; i++){
inter_val = discrete_interval<int>::right_open(l[i],r[i]);
overlap_counter += make_pair(inter_val, 1);
}
// get_insert prints:
// *********[2,3)
// *********[2,4)
//Exceptions raised here.
//Assertion failed: (this->_map.find(inter_val) == this->_map.end()),
function gap_insert, file
/Users/gagaga/boost155/include/boost/icl/interval_base_map.hpp, line 555.
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9987> 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:50:16 UTC