From 49bd16d34f33842e3840997b62da032b76b3f811 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 16 Feb 2015 18:41:56 +0100 Subject: [PATCH] delete iterator's post increment op. --- include/boost/coroutine/asymmetric_coroutine.hpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/include/boost/coroutine/asymmetric_coroutine.hpp b/include/boost/coroutine/asymmetric_coroutine.hpp index ff4684f..8ffebf5 100644 --- a/include/boost/coroutine/asymmetric_coroutine.hpp +++ b/include/boost/coroutine/asymmetric_coroutine.hpp @@ -788,12 +788,7 @@ public: return * this; } - iterator operator++( int) - { - iterator tmp( * this); - ++*this; - return tmp; - } + iterator operator++( int); reference_t operator*() const { @@ -1174,12 +1169,7 @@ public: return * this; } - iterator operator++( int) - { - iterator tmp( * this); - ++*this; - return tmp; - } + iterator operator++( int); reference_t operator*() const {