Re: [Boost-bugs] [Boost C++ Libraries] #5482: iterative_size() not the same for interval_maps using std::less and std::greater

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5482: iterative_size() not the same for interval_maps using std::less and std::greater
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-17 09:53:38


#5482: iterative_size() not the same for interval_maps using std::less and
std::greater
-------------------------------------+--------------------------------------
  Reporter: boicotinho@… | Owner: jofaber
      Type: Bugs | Status: assigned
 Milestone: Boost 1.47.0 | Component: ICL
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords: interval, iteration, ordering
-------------------------------------+--------------------------------------

Comment (by anonymous):

 Replying to [comment:2 jofaber]:

 Thank you for looking into this -
 I really like this ICL of yours and use it a lot :)

 FYI It seems that your workaround works - but if
 I insert the intervals in another order for m2,
 then m2.find() fails while m1.find() still works.

 In the meanwhile I am using std::less but representing
 the data with negative numbers instead.

 The reason I wanted to use std::greater is because
 I would like find() to start from the highest interval
 given a range.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5482#comment:3>
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:06 UTC