aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-14 12:59:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-14 12:59:33 +0200
commit3c2bc8595e9d6cf6ff35079231c3aab474a38130 (patch)
tree4cfcaa5679e59563442bb8ac24d2835a484b34af
parent8276259438592439236341b74300cb5538303c83 (diff)
Fix postfix operator++/-- implementations
-rw-r--r--build/target6
1 files changed, 3 insertions, 3 deletions
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