From b2758c360cc08d7a0334aae11845d0c5d50c46af Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 26 Apr 2019 12:58:06 -0700 Subject: [PATCH] [array] Use hb_is_cr_convertible_to() --- src/hb-array.hh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/hb-array.hh b/src/hb-array.hh index ee34dd54d..7a781bea3 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -47,22 +47,12 @@ struct hb_array_t : hb_iter_with_fallback_t, Type&> template hb_array_t (Type (&array_)[length_]) : arrayZ (array_), length (length_) {} template , U) || - hb_is_same (Type, hb_remove_reference) || - hb_is_same (hb_remove_const, hb_remove_reference) - )> + hb_enable_if (hb_is_cr_convertible_to(U, Type))> hb_array_t (const hb_array_t &o) : hb_iter_with_fallback_t, Type&> (), arrayZ (o.arrayZ), length (o.length) {} template , U) || - hb_is_same (Type, hb_remove_reference) || - hb_is_same (hb_remove_const, hb_remove_reference) - )> + hb_enable_if (hb_is_cr_convertible_to(U, Type))> hb_array_t& operator = (const hb_array_t &o) { arrayZ = o.arrayZ; length = o.length; return *this; }