diff --git a/src/utils/utils.hpp b/src/utils/utils.hpp index 1677aa5..ea0c53f 100644 --- a/src/utils/utils.hpp +++ b/src/utils/utils.hpp @@ -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()(std::declval())), 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()(std::declval())), void>::value,