[iter] Implement operator-> unconditionally

The right condition to check for would have been "is_struct", which
we don't have.
pull/1640/head
Behdad Esfahbod 6 years ago
parent 8f52a827e7
commit 15a6928436
  1. 1
      src/hb-iter.hh

@ -73,7 +73,6 @@ struct hb_iter_t
iter_t iter () const { return *thiz(); }
explicit_operator bool () const { return thiz()->__more__ (); }
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()); }
item_t operator * () const { return thiz()->__item__ (); }
item_t operator [] (unsigned i) const { return thiz()->__item_at__ (i); }

Loading…
Cancel
Save