From 3c2bc8595e9d6cf6ff35079231c3aab474a38130 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Jul 2015 12:59:33 +0200 Subject: Fix postfix operator++/-- implementations --- build/target | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/target b/build/target index 1015b0c..85eed1a 100644 --- a/build/target +++ b/build/target @@ -403,7 +403,7 @@ namespace build } iterator - operator++ (int) {iterator r (*this); return ++r;} + operator++ (int) {iterator r (*this); operator++ (); return r;} iterator& operator-- () @@ -419,7 +419,7 @@ namespace build } iterator - operator-- (int) {iterator r (*this); return --r;} + operator-- (int) {iterator r (*this); operator-- (); return r;} reference operator* () const {return *i_;} pointer operator-> () const {return i_.operator -> ();} @@ -590,7 +590,7 @@ namespace build } iterator& operator++ (); - iterator operator++ (int) {iterator r (*this); return ++r;} + iterator operator++ (int) {iterator r (*this); operator++ (); return r;} // Skip iterating over the rest of this group's members, if any. // Note that the only valid operation after this call is to -- cgit v1.1