提交 15a69284 编写于 作者: B Behdad Esfahbod

[iter] Implement operator-> unconditionally

The right condition to check for would have been "is_struct", which
we don't have.
上级 8f52a827
......@@ -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); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册