From 3b2e604237d5c818dc9b24158e18bc556c566dce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 13 Jan 2022 15:32:46 -0700 Subject: [PATCH] [meta] Use std::is_const instead of hb_is_const --- src/hb-meta.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index 67f9f429f..c40b2a917 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -108,7 +108,6 @@ template struct hb_match_const : hb_type_identity_t, hb_false_t template struct hb_match_const : hb_type_identity_t, hb_true_type {}; template using hb_remove_const = typename hb_match_const::type; template using hb_add_const = const T; -#define hb_is_const(T) hb_match_const::value template struct hb_match_reference : hb_type_identity_t, hb_false_type {}; template struct hb_match_reference : hb_type_identity_t, hb_true_type {}; @@ -137,8 +136,8 @@ template using hb_decay = hb_remove_const>; template using hb_is_cr_convertible = hb_bool_constant< hb_is_same (hb_decay, hb_decay) && - (!hb_is_const (From) || hb_is_const (To)) && - (!std::is_reference::value || hb_is_const (To) || std::is_reference::value) + (!std::is_const::value || std::is_const::value) && + (!std::is_reference::value || std::is_const::value || std::is_reference::value) >; #define hb_is_cr_convertible(From,To) hb_is_cr_convertible::value