From a17f0fa3a10a25959561582ae63ef2e5208647e2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 8 May 2019 14:44:11 -0700 Subject: [PATCH] [meta] Capture rvalue-references in is_reference / remove_reference --- src/hb-meta.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index a47c8cabd..421eb0638 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 }; };