diff --git a/src/hb-array.hh b/src/hb-array.hh index 468c52fe2b6764f1f8d314328cd7535f7f164b93..ddeef0dfce38497224ed820ff62a80c2a99f0043 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -46,6 +46,7 @@ struct hb_array_t hb_array_t (const hb_array_t &o) : arrayZ (o.arrayZ), len (o.len) {} hb_array_t (hb_array_t o) : arrayZ (o.arrayZ), len (o.len) {} hb_array_t (Type *array_, unsigned int len_) : arrayZ (array_), len (len_) {} + template hb_array_t (Type (&array_)[len_]) : arrayZ (array_), len (len_) {} /* * Operators. diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 5b6cbc4ea7a388bdf245db1822c353443fe2156b..5bf770ee578588f69cda2c8ac421ad902c89c390 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -54,7 +54,7 @@ struct Iter; template struct Iter { - explicit inline Iter (const T &c); + Iter (const T &c); }; #endif @@ -68,7 +68,7 @@ struct Iter Iter (T *array_, int length_) : array (array_), length (MAX (length_, 0)) {} template - explicit inline Iter (T (&array_)[length_]) : + Iter (T (&array_)[length_]) : array (array_), length (length_) {} /* Emptiness. */