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; };