Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55705 - sandbox/boost/mapreduce/intermediates
From: cdm.henderson_at_[hidden]
Date: 2009-08-21 15:43:24


Author: chenderson
Date: 2009-08-21 15:43:23 EDT (Fri, 21 Aug 2009)
New Revision: 55705
URL: http://svn.boost.org/trac/boost/changeset/55705

Log:
Removed equivalence for default-constructed key values
Text files modified:
   sandbox/boost/mapreduce/intermediates/in_memory.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: sandbox/boost/mapreduce/intermediates/in_memory.hpp
==============================================================================
--- sandbox/boost/mapreduce/intermediates/in_memory.hpp (original)
+++ sandbox/boost/mapreduce/intermediates/in_memory.hpp 2009-08-21 15:43:23 EDT (Fri, 21 Aug 2009)
@@ -92,6 +92,8 @@
 
         bool const equal(const_result_iterator const &other) const
         {
+ if (index_ == std::numeric_limits<unsigned>::max() || other.index_ == std::numeric_limits<unsigned>::max())
+ return other.index_ == index_;
             return value_ == other.value_;
         }
 
@@ -105,7 +107,7 @@
 
         const_result_iterator &end(void)
         {
- index_ = 0;
+ index_ = std::numeric_limits<unsigned>::max();
             value_ = keyvalue_t();
             iterators_.clear();
             return *this;


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