projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a171ed
)
[meta] Rewrite is_base_of
author
Behdad Esfahbod
<behdad@behdad.org>
Sat, 11 May 2019 03:15:03 +0000
(20:15 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 11 May 2019 03:15:03 +0000
(20:15 -0700)
src/hb-meta.hh
patch
|
blob
|
history
diff --git
a/src/hb-meta.hh
b/src/hb-meta.hh
index
f009245
..
ef6d989
100644
(file)
--- 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<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>