[open-file] Use hb_is_source_of instead of hb_is_iterator

This commit is contained in:
Behdad Esfahbod 2021-08-05 13:05:07 -06:00
parent fa90cb8a31
commit f7a9c3ea93
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ typedef struct OpenTypeOffsetTable
public:
template <typename Iterator,
hb_requires (hb_is_iterator (Iterator))>
hb_requires ((hb_is_source_of<Iterator, hb_pair_t<hb_tag_t, hb_blob_t *>>::value))>
bool serialize (hb_serialize_context_t *c,
hb_tag_t sfnt_tag,
Iterator it)
@ -493,7 +493,7 @@ struct OpenTypeFontFile
}
template <typename Iterator,
hb_requires (hb_is_iterator (Iterator))>
hb_requires ((hb_is_source_of<Iterator, hb_pair_t<hb_tag_t, hb_blob_t *>>::value))>
bool serialize_single (hb_serialize_context_t *c,
hb_tag_t sfnt_tag,
Iterator items)