Extending the usability of function_input_iterator after the changes addressing #5825: a dereference before each increment is no longer required.

[SVN r80790]
This commit is contained in:
Jeffrey Lee Hellrung, Jr.
2012-09-30 18:58:56 +00:00
parent c6f3269f4a
commit 1ce1296320

View File

@ -37,8 +37,10 @@ namespace boost {
: f(&f_), state(state_) {} : f(&f_), state(state_) {}
void increment() { void increment() {
BOOST_ASSERT(value); if(value)
value = none; value = none;
else
(*f)();
++state; ++state;
} }
@ -72,8 +74,10 @@ namespace boost {
: f(f_), state(state_) {} : f(f_), state(state_) {}
void increment() { void increment() {
BOOST_ASSERT(value); if(value)
value = none; value = none;
else
(*f)();
++state; ++state;
} }