Update msvc bug workaround to not produce build warnings

This commit is contained in:
Jeremy 2023-12-04 11:30:37 -05:00
parent e1f91f1877
commit 56b50d279a
No known key found for this signature in database
GPG Key ID: B4C8300FEC395042

View File

@ -365,7 +365,7 @@ namespace detail {
typename T,
typename D
// workaround a msvc bug https://developercommunity.visualstudio.com/t/MSVC-1938331290-preview-fails-to-comp/10505565
#if _MSC_VER != 1938
#if !defined(_MSC_VER) || _MSC_VER != 1938
,
typename std::enable_if<
std::is_same<decltype(std::declval<D>()(std::declval<T>())), void>::value,
@ -415,7 +415,7 @@ namespace detail {
typename T,
typename D
// workaround a msvc bug https://developercommunity.visualstudio.com/t/MSVC-1938331290-preview-fails-to-comp/10505565
#if _MSC_VER != 1938
#if !defined(_MSC_VER) || _MSC_VER != 1938
,
typename std::enable_if<
std::is_same<decltype(std::declval<D>()(std::declval<T>())), void>::value,