mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-23 01:17:16 +02:00
Merging boost/iterator from trunk to release (usability improvement after latest fix to function_input_iterator).
[SVN r80813]
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user