From: Behdad Esfahbod Date: Wed, 8 May 2019 16:14:44 +0000 (-0700) Subject: [algs] Try f[v] in hb_get() as last resort X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26adefd9eaf4bc1d80b1ffececf0d86f3308f9ee;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [algs] Try f[v] in hb_get() as last resort --- diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 9e8a4ae..b83ee6a 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -100,16 +100,22 @@ struct private: template auto - impl (Proj&& f, Val &&v, hb_priority<1>) const HB_AUTO_RETURN + impl (Proj&& f, Val &&v, hb_priority<2>) const HB_AUTO_RETURN (hb_deref (hb_forward (f)).get (hb_forward (v))) template auto - impl (Proj&& f, Val &&v, hb_priority<0>) const HB_AUTO_RETURN + impl (Proj&& f, Val &&v, hb_priority<1>) const HB_AUTO_RETURN ( hb_invoke (hb_forward (f), hb_forward (v)) ) + template auto + impl (Proj&& f, Val &&v, hb_priority<0>) const HB_AUTO_RETURN + ( + hb_forward (f)[hb_forward (v)] + ) + public: template auto