[map] Make default_value() inline

See if it make fix https://github.com/harfbuzz/harfbuzz/issues/3684
This commit is contained in:
Behdad Esfahbod 2022-06-27 13:17:10 -06:00
parent 3a0e27e794
commit 69d53f3e7f
1 changed files with 2 additions and 2 deletions

View File

@ -77,10 +77,10 @@ struct hb_hashmap_t
template <bool v = minus_one, template <bool v = minus_one,
hb_enable_if (v == false)> hb_enable_if (v == false)>
static const V& default_value () { return Null(V); }; static inline const V& default_value () { return Null(V); };
template <bool v = minus_one, template <bool v = minus_one,
hb_enable_if (v == true)> hb_enable_if (v == true)>
static const V& default_value () { static const V minus_1 = -1; return minus_1; }; static inline const V& default_value () { static const V minus_1 = -1; return minus_1; };
void clear () void clear ()
{ {