Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54107 - sandbox/itl/boost/itl
From: afojgo_at_[hidden]
Date: 2009-06-19 06:49:10


Author: jofaber
Date: 2009-06-19 06:49:09 EDT (Fri, 19 Jun 2009)
New Revision: 54107
URL: http://svn.boost.org/trac/boost/changeset/54107

Log:
Refactoring, optimizing: Improved efficiency of interval_map::add. Portability for gcc. Stable {msvc-9.0 r+d, gcc-3.4.4}
Text files modified:
   sandbox/itl/boost/itl/interval_map.hpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: sandbox/itl/boost/itl/interval_map.hpp
==============================================================================
--- sandbox/itl/boost/itl/interval_map.hpp (original)
+++ sandbox/itl/boost/itl/interval_map.hpp 2009-06-19 06:49:09 EDT (Fri, 19 Jun 2009)
@@ -359,7 +359,7 @@
         return this->_map.end();
 
         std::pair<iterator,bool> insertion
- = this->template map_insert<Combiner>(value.KEY_VALUE, co_val);
+ = this->template map_insert<Combiner>(value.KEY_VALUE, value.CONT_VALUE);
 
     join_neighbours(insertion.ITERATOR);
 
@@ -421,7 +421,6 @@
                         --prior_;
 
         interval_type fst_itv = (*fst_it).KEY_VALUE;
- CodomainT cur_val = (*fst_it).CONT_VALUE;
 
         // only for the first there can be a left_resid: a part of *it left of x
         interval_type left_resid = right_subtract(fst_itv, inter_val);
@@ -569,7 +568,6 @@
                 {
                         // [-------------)
                         // [-- it ---right_resid)
- //codomain_type cur_val = it->CONT_VALUE;
                         const_cast<interval_type&>(it->KEY_VALUE).right_subtract(right_resid);
 
                         //NOTE: This is NOT an insertion that has to take care for correct application of


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk