Revert "Revert symmetric OffsetTo overloads"

This reverts commit 01912efb74.

Actually this didn't break things.  Fixing
This commit is contained in:
Behdad Esfahbod 2019-05-15 00:50:48 -07:00
parent 01912efb74
commit b213042f87
1 changed files with 4 additions and 0 deletions

View File

@ -282,7 +282,11 @@ struct OffsetTo : Offset<OffsetType, has_null>
template <typename Base> template <typename Base>
friend const Type& operator + (const Base *base, const OffsetTo &offset) { return offset (base); } friend const Type& operator + (const Base *base, const OffsetTo &offset) { return offset (base); }
template <typename Base> template <typename Base>
friend const Type& operator + (const OffsetTo &offset, const Base *base) { return offset (base); }
template <typename Base>
friend Type& operator + (Base *base, OffsetTo &offset) { return offset (base); } friend Type& operator + (Base *base, OffsetTo &offset) { return offset (base); }
template <typename Base>
friend Type& operator + (OffsetTo &offset, Base *base) { return offset (base); }
Type& serialize (hb_serialize_context_t *c, const void *base) Type& serialize (hb_serialize_context_t *c, const void *base)
{ {