Revert "hb-algs.hh: Fix build on Visual Studio 2015"
This reverts commit 52c536bb8d
.
See https://github.com/harfbuzz/harfbuzz/pull/3448
This commit is contained in:
parent
da801cdee1
commit
8e900f2cda
|
@ -226,14 +226,8 @@ struct
|
|||
template <typename T> 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 <typename T> constexpr auto
|
||||
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v))>>{} (hb_deref (v)))
|
||||
#else
|
||||
template <typename T> constexpr auto
|
||||
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v).hash ())>>{} (hb_deref (v)))
|
||||
#endif
|
||||
|
||||
template <typename T,
|
||||
hb_enable_if (std::is_integral<T>::value)> constexpr auto
|
||||
|
|
Loading…
Reference in New Issue