From 87f7c83fffb7e64970be23c8e3c620d32a3b8f5b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 20 Dec 2018 15:54:17 -0500 Subject: [PATCH] [serializer] Add operator << Not sure if we are going to use it. But might incentivize us to. --- src/hb-machinery.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 2070fd838..9d2ae9555 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -599,6 +599,8 @@ struct hb_serialize_context_t memcpy (ret, &obj, size); return ret; } + template + hb_serialize_context_t &operator << (const Type &obj) { embed (obj); return *this; } template Type *extend_size (Type &obj, unsigned int size)