Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80813 - branches/release/boost/iterator
From: jeffrey.hellrung_at_[hidden]
Date: 2012-10-01 21:14:37


Author: jeffrey.hellrung
Date: 2012-10-01 21:14:36 EDT (Mon, 01 Oct 2012)
New Revision: 80813
URL: http://svn.boost.org/trac/boost/changeset/80813

Log:
Merging boost/iterator from trunk to release (usability improvement after latest fix to function_input_iterator).
Properties modified:
   branches/release/boost/iterator/ (props changed)
Text files modified:
   branches/release/boost/iterator/function_input_iterator.hpp | 12 ++++++++----
   1 files changed, 8 insertions(+), 4 deletions(-)

Modified: branches/release/boost/iterator/function_input_iterator.hpp
==============================================================================
--- branches/release/boost/iterator/function_input_iterator.hpp (original)
+++ branches/release/boost/iterator/function_input_iterator.hpp 2012-10-01 21:14:36 EDT (Mon, 01 Oct 2012)
@@ -37,8 +37,10 @@
                 : f(&f_), state(state_) {}
 
             void increment() {
- BOOST_ASSERT(value);
- value = none;
+ if(value)
+ value = none;
+ else
+ (*f)();
                 ++state;
             }
 
@@ -72,8 +74,10 @@
                 : f(f_), state(state_) {}
 
             void increment() {
- BOOST_ASSERT(value);
- value = none;
+ if(value)
+ value = none;
+ else
+ (*f)();
                 ++state;
             }
 


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