[map] Remove constexpr invalid items

These were non-workable in the general case, eg std::string.
This commit is contained in:
Behdad Esfahbod 2022-01-13 12:44:48 -07:00
parent 114046dc27
commit 5a91db1135
2 changed files with 1 additions and 4 deletions

View File

@ -41,9 +41,6 @@ template <typename K, typename V,
v_invalid_t vINVALID = hb_is_pointer (V) ? 0 : std::is_signed<V>::value ? hb_int_min (V) : (V) -1>
struct hb_hashmap_t
{
static constexpr k_invalid_t INVALID_KEY = kINVALID;
static constexpr v_invalid_t INVALID_VALUE = vINVALID;
hb_hashmap_t () { init (); }
~hb_hashmap_t () { fini (); }

View File

@ -3706,7 +3706,7 @@ struct GSUBGPOS
for (unsigned i : feature_indices->iter ())
{
hb_tag_t t = get_feature_tag (i);
if (t == unique_features.INVALID_KEY) continue;
if (t == HB_MAP_VALUE_INVALID) continue;
if (!unique_features.has (t))
{
hb_set_t* indices = hb_set_create ();