diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 446d87e28..d95db4ca5 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -36,6 +36,7 @@ #include #include +#include #include /* @@ -215,7 +216,10 @@ struct private: template constexpr auto - impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref (v).hash ()) + impl (const T& v, hb_priority<2>) const HB_RETURN (uint32_t, hb_deref (v).hash ()) + + template constexpr auto + impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash{} (hb_deref (v))) template ::value)> constexpr auto