diff --git a/include/boost/coroutine2/detail/pull_coroutine.hpp b/include/boost/coroutine2/detail/pull_coroutine.hpp index bda4cec..ff76bd3 100644 --- a/include/boost/coroutine2/detail/pull_coroutine.hpp +++ b/include/boost/coroutine2/detail/pull_coroutine.hpp @@ -123,11 +123,7 @@ public: return * this; } - iterator operator++( int) { - iterator tmp( * this); - ++*this; - return tmp; - } + iterator operator++( int) = delete; reference_t operator*() const { return * c_->cb_->other->t; @@ -240,11 +236,7 @@ public: return * this; } - iterator operator++( int) { - iterator tmp( * this); - ++*this; - return tmp; - } + iterator operator++( int) = delete; reference_t operator*() const { return * c_->cb_->other->t;