Boost logo

Boost Users :

Subject: [Boost-users] [ICL] Map & insertion
From: Oodini (svdbg____at_[hidden])
Date: 2014-03-19 08:15:37


Hello,

I declared an interval_map :

interval_map<uint16_t, SomeEnumType> myMap;

and two intervals :

discrete_interval<uint16_t>( 0,10) interval_1;
discrete_interval<uint16_t>(10,17) interval_2;

Later, I do :

myMap.insert(std::make_pair(interval_1, SOME_ENUM_VALUE_1);
myMap.insert(std::make_pair(interval_2, SOME_ENUM_VALUE_2);

The second insertion hasn't any effect.
I tought that by default, the upper bound was excluded. If so, there isn't any overlapping.
So why does that failt ?
By debugging, I cna see that somewhere in the ICL code, the second value is tested as "absorbable"...

Thanks for help.


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