diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 1af4e6e64..ff12d4af5 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -64,6 +64,11 @@ struct IntType IntType& operator = (Type i) { v = i; return *this; } operator Type () const { return v; } + template , + hb_enable_if (sizeof (Type) < sizeof (Type2))> + operator hb_type_identity_t () const { return v; } + + bool operator == (const IntType &o) const { return (Type) v == (Type) o.v; } bool operator != (const IntType &o) const { return !(*this == o); }