From ff0d0d020e0fcf7be4e45d6791eb5c7155f5c84b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 14 Nov 2022 14:34:20 -0700 Subject: [PATCH] [meta] Use std::decay --- src/hb-meta.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index 52a6791e3..31aa7fa6f 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -112,8 +112,7 @@ template auto _hb_try_add_pointer (hb_priority<1>) -> hb_type_ident template using hb_add_pointer = decltype (_hb_try_add_pointer (hb_prioritize)); -/* TODO Add feature-parity to std::decay. */ -template using hb_decay = hb_remove_const>; +template using hb_decay = typename std::decay::type; #define hb_is_convertible(From,To) std::is_convertible::value