diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a95afc20f..c4ec0edd4 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -696,8 +696,8 @@ struct FixedVersion * Use: (base+offset) */ -template -struct GenericOffsetTo : OffsetType +template +struct OffsetTo : OffsetType { inline const Type& operator () (const void *base) const { @@ -737,15 +737,12 @@ struct GenericOffsetTo : OffsetType } }; template -static inline const Type& operator + (const Base &base, const GenericOffsetTo &offset) { return offset (base); } +static inline const Type& operator + (const Base &base, const OffsetTo &offset) { return offset (base); } template -static inline Type& operator + (Base &base, GenericOffsetTo &offset) { return offset (base); } +static inline Type& operator + (Base &base, OffsetTo &offset) { return offset (base); } template -struct OffsetTo : GenericOffsetTo {}; - -template -struct LongOffsetTo : GenericOffsetTo {}; +struct LongOffsetTo : OffsetTo {}; /*