[meta] Use std::decay

This commit is contained in:
Behdad Esfahbod 2022-11-14 14:34:20 -07:00
parent 9650f34a84
commit ff0d0d020e
1 changed files with 1 additions and 2 deletions

View File

@ -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