From b213042f87dd736bad7a852fe98269f84cbff493 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 May 2019 00:50:48 -0700 Subject: [PATCH] Revert "Revert symmetric OffsetTo overloads" This reverts commit 01912efb74fc554a81c8cfe572145ce45b8fa58b. Actually this didn't break things. Fixing --- src/hb-open-type.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 6c888f6bb..fcf1047b9 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -282,7 +282,11 @@ struct OffsetTo : Offset template friend const Type& operator + (const Base *base, const OffsetTo &offset) { return offset (base); } template + friend const Type& operator + (const OffsetTo &offset, const Base *base) { return offset (base); } + template friend Type& operator + (Base *base, OffsetTo &offset) { return offset (base); } + template + friend Type& operator + (OffsetTo &offset, Base *base) { return offset (base); } Type& serialize (hb_serialize_context_t *c, const void *base) {