[iter] Implement operator-> unconditionally

The right condition to check for would have been "is_struct", which
we don't have.
This commit is contained in:
Behdad Esfahbod 2019-01-09 00:36:47 -08:00
parent 8f52a827e7
commit 15a6928436
1 changed files with 0 additions and 1 deletions

View File

@ -73,7 +73,6 @@ struct hb_iter_t
iter_t iter () const { return *thiz(); } iter_t iter () const { return *thiz(); }
explicit_operator bool () const { return thiz()->__more__ (); } explicit_operator bool () const { return thiz()->__more__ (); }
unsigned len () const { return thiz()->__len__ (); } unsigned len () const { return thiz()->__len__ (); }
template <typename U = item_t, hb_enable_if (hb_is_reference (U))>
hb_remove_reference (item_t)* operator -> () const { return hb_addressof (**thiz()); } hb_remove_reference (item_t)* operator -> () const { return hb_addressof (**thiz()); }
item_t operator * () const { return thiz()->__item__ (); } item_t operator * () const { return thiz()->__item__ (); }
item_t operator [] (unsigned i) const { return thiz()->__item_at__ (i); } item_t operator [] (unsigned i) const { return thiz()->__item_at__ (i); }