[icl] interval_map<> and overlapping intervals at boundaries
Hello,
I don't understand the behavior of icl::interval_map<,> on the
following scenario:
1. Before adding a new segment:
{([0.179494,0.679494)->0.333333)([2.51847,3.01847)->0.333333)([3.24221,3.74221)->0.333333)}
2. Add segment: ([3.74221,4.24221)->0.333333)
3. After adding the segment:
{([0.179494,0.679494)->0.333333)([2.51847,3.01847)->0.333333)([3.24221,4.24221)->0.333333)}
What I would expect at step #3 is:
{([0.179494,0.679494)->0.333333)([2.51847,3.01847)->0.333333)([3.24221,4.24221)->0.666667)}
For the sake of clarity I provide a sample code below:
--- [code] ---
#include
On Sat, May 21, 2011 at 5:18 PM, sguazt
Hello,
I don't understand the behavior of icl::interval_map<,> on the following scenario:
... [cut] ...
What kind of interval container should I use in order to obtain the wanted result?
I'm using the SVN trunk version of boost with GCC 4.5.1 (linux x86_64)
Sorry. Forget this question. The result provided by ICL is right. Cheers, -- Marco
participants (1)
-
sguazt