From aebdd81a5d889131d741343fa624a8d1089e014e Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 16 Feb 2015 18:35:03 +0100 Subject: [PATCH] delete iteratos's post increment op. --- include/boost/coroutine2/detail/pull_coroutine.hpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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;