From b7b0a15f7eb8e753e6434c1fee66c2a2f75ea1bb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 13 Jan 2022 15:33:27 -0700 Subject: [PATCH] [meta] Remove hb_add_const --- src/hb-iter.hh | 2 +- src/hb-meta.hh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-iter.hh b/src/hb-iter.hh index e067d2b9a..34887fd57 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -289,7 +289,7 @@ struct hb_is_source_of { private: template >))> + hb_enable_if (hb_is_convertible (typename Iter2::item_t, hb_add_lvalue_reference))> static hb_true_type impl (hb_priority<2>); template static auto impl (hb_priority<1>) -> decltype (hb_declval (Iter2) >> hb_declval (Item &), hb_true_type ()); diff --git a/src/hb-meta.hh b/src/hb-meta.hh index c40b2a917..60bec551d 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -107,7 +107,6 @@ template static inline T hb_declval (); template struct hb_match_const : hb_type_identity_t, hb_false_type {}; template struct hb_match_const : hb_type_identity_t, hb_true_type {}; template using hb_remove_const = typename hb_match_const::type; -template using hb_add_const = const T; template struct hb_match_reference : hb_type_identity_t, hb_false_type {}; template struct hb_match_reference : hb_type_identity_t, hb_true_type {};