[arrays] Minor tweaks to hb_supplier_t

I think I like to keep this hb_supplier_t thing separately from hb_array_t.
This commit is contained in:
Behdad Esfahbod 2018-12-17 22:41:04 -05:00
parent cf39c24205
commit b1094fc2d2
1 changed files with 5 additions and 0 deletions

View File

@ -271,8 +271,13 @@ typedef hb_array_t<const char> hb_bytes_t;
template <typename Type> struct hb_supplier_t : hb_array_t<const Type> template <typename Type> struct hb_supplier_t : hb_array_t<const Type>
{ {
HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (hb_supplier_t, Type);
hb_supplier_t (const Type *array, unsigned int len) : hb_array_t<const Type> (array, len) {} hb_supplier_t (const Type *array, unsigned int len) : hb_array_t<const Type> (array, len) {}
hb_supplier_t (hb_array_t<const Type> v) : hb_array_t<const Type> (v) {} hb_supplier_t (hb_array_t<const Type> v) : hb_array_t<const Type> (v) {}
/* Make sure no one calls the custom & operator on us. */
Type * operator & () const;
}; };