[iter] Disallow copy-construction or assignment of hb_iter_t<>

Should only be done by subclass.
This commit is contained in:
Behdad Esfahbod 2018-12-21 16:39:57 -05:00
parent 65e8bd56ad
commit 5e1840e031
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ struct hb_iter_t
/* Random access: Return true if len(), forward(), item_at() are fast. */ /* Random access: Return true if len(), forward(), item_at() are fast. */
bool __random_access__ () const { return false; } bool __random_access__ () const { return false; }
protected:
hb_iter_t () {}
hb_iter_t (const hb_iter_t &o) {}
void operator = (const hb_iter_t &o) {}
}; };