[open-file] Use hb_is_source_of instead of hb_is_iterator
This commit is contained in:
parent
fa90cb8a31
commit
f7a9c3ea93
|
@ -119,7 +119,7 @@ typedef struct OpenTypeOffsetTable
|
||||||
public:
|
public:
|
||||||
|
|
||||||
template <typename Iterator,
|
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,
|
bool serialize (hb_serialize_context_t *c,
|
||||||
hb_tag_t sfnt_tag,
|
hb_tag_t sfnt_tag,
|
||||||
Iterator it)
|
Iterator it)
|
||||||
|
@ -493,7 +493,7 @@ struct OpenTypeFontFile
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Iterator,
|
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,
|
bool serialize_single (hb_serialize_context_t *c,
|
||||||
hb_tag_t sfnt_tag,
|
hb_tag_t sfnt_tag,
|
||||||
Iterator items)
|
Iterator items)
|
||||||
|
|
Loading…
Reference in New Issue