From 72eb91deb9eb7a08e38e100a3234518651fe4cb8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 6 May 2019 23:39:13 -0700 Subject: [PATCH] Add hb_ref() Unused. --- src/hb-meta.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index f7699d781..9ca63cd97 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -128,6 +128,16 @@ struct } HB_FUNCOBJ (hb_deref); +struct +{ + template auto + operator () (T&& v) const HB_AUTO_RETURN (hb_forward (v)) + + template auto + operator () (T& v) const HB_AUTO_RETURN (hb_addressof (v)) + +} HB_FUNCOBJ (hb_ref); + template struct hb_enable_if {}; template struct hb_enable_if { typedef T type; };