diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 60986a847..7edd95321 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -553,7 +553,7 @@ struct ArrayOf return_trace (true); } template - hb_enable_if_t (hb_is_iterator (Iterator, Type), + hb_enable_if_t (hb_is_iterator (Iterator, Type), bool) serialize (hb_serialize_context_t *c, Iterator items) { diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 2ac8cc041..fa0c69abf 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -826,8 +826,10 @@ struct CoverageFormat1 return i; } - bool serialize (hb_serialize_context_t *c, - hb_array_t glyphs) + template + hb_enable_if_t (hb_is_iterator (Iterator, const GlyphID), + bool) serialize (hb_serialize_context_t *c, + Iterator glyphs) { TRACE_SERIALIZE (this); return_trace (glyphArray.serialize (c, glyphs)); @@ -893,8 +895,10 @@ struct CoverageFormat2 NOT_COVERED; } - bool serialize (hb_serialize_context_t *c, - hb_array_t glyphs) + template + hb_enable_if_t (hb_is_iterator (Iterator, const GlyphID), + bool) serialize (hb_serialize_context_t *c, + Iterator glyphs) { TRACE_SERIALIZE (this); if (unlikely (!c->extend_min (*this))) return_trace (false); @@ -1040,8 +1044,10 @@ struct Coverage } } - bool serialize (hb_serialize_context_t *c, - hb_array_t glyphs) + template + hb_enable_if_t (hb_is_iterator (Iterator, const GlyphID), + bool) serialize (hb_serialize_context_t *c, + Iterator glyphs) { TRACE_SERIALIZE (this); if (unlikely (!c->extend_min (*this))) return_trace (false);