[map] Remove constexpr invalid items
These were non-workable in the general case, eg std::string.
This commit is contained in:
parent
114046dc27
commit
5a91db1135
|
@ -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>
|
v_invalid_t vINVALID = hb_is_pointer (V) ? 0 : std::is_signed<V>::value ? hb_int_min (V) : (V) -1>
|
||||||
struct hb_hashmap_t
|
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 () { init (); }
|
||||||
~hb_hashmap_t () { fini (); }
|
~hb_hashmap_t () { fini (); }
|
||||||
|
|
||||||
|
|
|
@ -3706,7 +3706,7 @@ struct GSUBGPOS
|
||||||
for (unsigned i : feature_indices->iter ())
|
for (unsigned i : feature_indices->iter ())
|
||||||
{
|
{
|
||||||
hb_tag_t t = get_feature_tag (i);
|
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))
|
if (!unique_features.has (t))
|
||||||
{
|
{
|
||||||
hb_set_t* indices = hb_set_create ();
|
hb_set_t* indices = hb_set_create ();
|
||||||
|
|
Loading…
Reference in New Issue