mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[meta] Use std::decay
This commit is contained in:
1 parent
9650f34a84
commit
ff0d0d020e
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user