From: Behdad Esfahbod Date: Wed, 8 May 2019 21:44:11 +0000 (-0700) Subject: [meta] Capture rvalue-references in is_reference / remove_reference X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a17f0fa3a10a25959561582ae63ef2e5208647e2;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [meta] Capture rvalue-references in is_reference / remove_reference --- diff --git a/src/hb-meta.hh b/src/hb-meta.hh index a47c8ca..421eb06 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -93,6 +93,7 @@ template using hb_remove_const = typename hb_match_const::type; #define hb_is_const(T) hb_match_const::value template struct hb_match_reference { typedef T type; enum { value = false }; }; template struct hb_match_reference { typedef T type; enum { value = true }; }; +template struct hb_match_reference { typedef T type; enum { value = true }; }; template using hb_remove_reference = typename hb_match_reference::type; #define hb_is_reference(T) hb_match_reference::value template struct hb_match_pointer { typedef T type; enum { value = false }; };