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

Subject: [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-16 03:07:03


#5482: iterative_size() not the same for interval_maps using std::less and
std::greater
------------------------------------+---------------------------------------
 Reporter: boicotinho@… | Owner: jofaber
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: ICL
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: interval, iteration |
------------------------------------+---------------------------------------
 The assertion at the bottom fails.

 {{{
 typedef interval_map<int,int,partial_absorber,std::less> m1_t;
 typedef interval_map<int,int,partial_absorber,std::greater> m2_t;
 m1_t m1;
 m2_t m2;
 m1.insert(make_pair(m1_t::interval_type(1), 20));
 m1.insert(make_pair(m1_t::interval_type(2), 20));
 m1.insert(make_pair(m1_t::interval_type(3), 20));

 m2.insert(make_pair(m2_t::interval_type(1), 20));
 m2.insert(make_pair(m2_t::interval_type(2), 20));
 m2.insert(make_pair(m2_t::interval_type(3), 20));
 Assert::IsTrue(m1.iterative_size() == m2.iterative_size());

 }}}

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