[meta] Use std::decay
This commit is contained in:
parent
9650f34a84
commit
ff0d0d020e
|
@ -112,8 +112,7 @@ template <typename T> auto _hb_try_add_pointer (hb_priority<1>) -> hb_type_ident
|
|||
template <typename T> using hb_add_pointer = decltype (_hb_try_add_pointer<T> (hb_prioritize));
|
||||
|
||||
|
||||
/* TODO Add feature-parity to std::decay. */
|
||||
template <typename T> using hb_decay = hb_remove_const<hb_remove_reference<T>>;
|
||||
template <typename T> using hb_decay = typename std::decay<T>::type;
|
||||
|
||||
#define hb_is_convertible(From,To) std::is_convertible<From, To>::value
|
||||
|
||||
|
|
Loading…
Reference in New Issue