[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-commit
Subject: [Boost-commit] svn:boost r80790 - trunk/boost/iterator
From: jeffrey.hellrung () gmail ! com
Date: 2012-09-30 18:58:58
Message-ID: 20120930185858.90ACA2F810B () wowbagger ! osl ! iu ! edu
[Download RAW message or body]
Author: jeffrey.hellrung
Date: 2012-09-30 14:58:56 EDT (Sun, 30 Sep 2012)
New Revision: 80790
URL: http://svn.boost.org/trac/boost/changeset/80790
Log:
Extending the usability of function_input_iterator after the changes addressing \
#5825: a dereference before each increment is no longer required. Text files \
modified: trunk/boost/iterator/function_input_iterator.hpp | 12 ++++++++---- \
1 files changed, 8 insertions(+), 4 deletions(-)
Modified: trunk/boost/iterator/function_input_iterator.hpp
==============================================================================
--- trunk/boost/iterator/function_input_iterator.hpp (original)
+++ trunk/boost/iterator/function_input_iterator.hpp 2012-09-30 14:58:56 EDT (Sun, 30 \
Sep 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 mailing list
Boost-commit@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic