From b4ad6af9c4ec30c462078bd93ae12653619c5fea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 May 2019 20:15:03 -0700 Subject: [PATCH] [meta] Rewrite is_base_of --- src/hb-meta.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index f00924599..ef6d98912 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -158,10 +158,7 @@ struct hb_is_convertible #define hb_is_convertible(From,To) hb_is_convertible::value template -struct hb_is_base_of -{ - static constexpr bool value = hb_is_convertible (hb_decay *, hb_decay *); -}; +using hb_is_base_of = hb_is_convertible *, hb_decay *>; #define hb_is_base_of(Base,Derived) hb_is_base_of::value template