[iter] Remove friend operator +, hoping to fix some bots

This commit is contained in:
Behdad Esfahbod 2018-12-28 21:09:15 -05:00
parent cb27918d0a
commit 037f735efd
2 changed files with 0 additions and 2 deletions

View File

@ -76,7 +76,6 @@ struct hb_iter_t
iter_t& operator -= (unsigned count) { thiz()->__rewind__ (count); return *thiz(); }
iter_t& operator -- () { thiz()->__prev__ (); return *thiz(); }
iter_t operator + (unsigned count) const { iter_t c (*thiz()); c += count; return c; }
friend iter_t operator + (unsigned count, const iter_t &it) { return it + count; }
iter_t operator ++ (int) { iter_t c (*thiz()); ++*thiz(); return c; }
iter_t operator - (unsigned count) const { iter_t c (*thiz()); c -= count; return c; }
iter_t operator -- (int) { iter_t c (*thiz()); --*thiz(); return c; }

View File

@ -76,7 +76,6 @@ test_iterator (Iterator it)
it += it.len () + 10;
it = it + 10;
it = 10 + it;
assert (*it == it[0]);