From b1094fc2d2b614c1407b502d15bd98407a5ffb56 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 17 Dec 2018 22:41:04 -0500 Subject: [PATCH] [arrays] Minor tweaks to hb_supplier_t I think I like to keep this hb_supplier_t thing separately from hb_array_t. --- src/hb-array.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-array.hh b/src/hb-array.hh index 8c02c13bd..c18d4dc4b 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -271,8 +271,13 @@ typedef hb_array_t hb_bytes_t; template struct hb_supplier_t : hb_array_t { + HB_NO_CREATE_COPY_ASSIGN_TEMPLATE (hb_supplier_t, Type); + hb_supplier_t (const Type *array, unsigned int len) : hb_array_t (array, len) {} hb_supplier_t (hb_array_t v) : hb_array_t (v) {} + + /* Make sure no one calls the custom & operator on us. */ + Type * operator & () const; };