diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 3a3ab0804..550b8a41a 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -226,8 +226,14 @@ struct template constexpr auto impl (const T& v, hb_priority<2>) const HB_RETURN (uint32_t, hb_deref (v).hash ()) +/* Sadly, we must give further hints to VS2015 to build the following template item */ +#if !defined (_MSC_VER) || defined (__clang__) || (_MSC_VER >= 1910) template constexpr auto impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash>{} (hb_deref (v))) +#else + template constexpr auto + impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash>{} (hb_deref (v))) +#endif template ::value)> constexpr auto