|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83046 - trunk/boost/coroutine/detail
From: oliver.kowalke_at_[hidden]
Date: 2013-02-20 10:52:33
Author: olli
Date: 2013-02-20 10:52:32 EST (Wed, 20 Feb 2013)
New Revision: 83046
URL: http://svn.boost.org/trac/boost/changeset/83046
Log:
coroutine: fix for bug #8101 - post-fix increment for iterators
Text files modified:
trunk/boost/coroutine/detail/coroutine_op.hpp | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
Modified: trunk/boost/coroutine/detail/coroutine_op.hpp
==============================================================================
--- trunk/boost/coroutine/detail/coroutine_op.hpp (original)
+++ trunk/boost/coroutine/detail/coroutine_op.hpp 2013-02-20 10:52:32 EST (Wed, 20 Feb 2013)
@@ -116,6 +116,13 @@
return * this;
}
+ iterator operator++( int)
+ {
+ iterator tmp( * this);
+ ++*this;
+ return tmp;
+ }
+
reference_t operator*() const
{ return const_cast< optional< Result > & >( val_).get(); }
@@ -187,6 +194,13 @@
return * this;
}
+ const_iterator operator++( int)
+ {
+ const_iterator tmp( * this);
+ ++*this;
+ return tmp;
+ }
+
reference_t operator*() const
{ return val_.get(); }
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