[iter] Add TODO

This commit is contained in:
Behdad Esfahbod 2019-01-08 13:43:49 -08:00
parent 362d4e7cc3
commit 6c548b6657
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ struct hb_iter_t
iter_t* thiz () { return static_cast< iter_t *> (this); } iter_t* thiz () { return static_cast< iter_t *> (this); }
public: public:
/* TODO:
* Port operators below to use hb_enable_if to sniff which method implements
* an operator and use it, and remove hb_iter_mixin_t completely. */
/* Operators. */ /* Operators. */
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__ (); }