From 8414f167879c1af8ce5c80a15ba1aec2f7e436a6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 7 Jan 2019 19:41:52 -0500 Subject: [PATCH] [meta] Rename --- src/hb-meta.hh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index 57defde..4a8a642 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -37,18 +37,18 @@ template static inline T hb_declval (); -template struct hb_match_const { typedef T type; enum { matched = false }; }; -template struct hb_match_const { typedef T type; enum { matched = true }; }; +template struct hb_match_const { typedef T type; enum { value = false }; }; +template struct hb_match_const { typedef T type; enum { value = true }; }; #define hb_remove_const(T) typename hb_match_const::type -#define hb_is_const(T) hb_match_const::matched -template struct hb_match_reference { typedef T type; enum { matched = false }; }; -template struct hb_match_reference { typedef T type; enum { matched = true }; }; +#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 }; }; #define hb_remove_reference(T) typename hb_match_reference::type -#define hb_is_reference(T) hb_match_reference::matched -template struct hb_match_pointer { typedef T type; enum { matched = false }; }; -template struct hb_match_pointer { typedef T type; enum { matched = true }; }; +#define hb_is_reference(T) hb_match_reference::value +template struct hb_match_pointer { typedef T type; enum { value = false }; }; +template struct hb_match_pointer { typedef T type; enum { value = true }; }; #define hb_remove_pointer(T) typename hb_match_pointer::type -#define hb_is_pointer(T) hb_match_pointer::matched +#define hb_is_pointer(T) hb_match_pointer::value /* Void! For when we need a expression-type of void. */ -- 2.7.4