[meta] Rewrite is_base_of
This commit is contained in:
parent
5a171ed3a6
commit
b4ad6af9c4
@ -158,10 +158,7 @@ struct hb_is_convertible
|
||||
#define hb_is_convertible(From,To) hb_is_convertible<From, To>::value
|
||||
|
||||
template <typename Base, typename Derived>
|
||||
struct hb_is_base_of
|
||||
{
|
||||
static constexpr bool value = hb_is_convertible (hb_decay<Derived> *, hb_decay<Base> *);
|
||||
};
|
||||
using hb_is_base_of = hb_is_convertible<hb_decay<Derived> *, hb_decay<Base> *>;
|
||||
#define hb_is_base_of(Base,Derived) hb_is_base_of<Base, Derived>::value
|
||||
|
||||
template <typename From, typename To>
|
||||
|
Loading…
Reference in New Issue
Block a user