Skip to content

Commit 56b50d2

Browse files
committed
Update msvc bug workaround to not produce build warnings
1 parent e1f91f1 commit 56b50d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ namespace detail {
365365
typename T,
366366
typename D
367367
// workaround a msvc bug https://developercommunity.visualstudio.com/t/MSVC-1938331290-preview-fails-to-comp/10505565
368-
#if _MSC_VER != 1938
368+
#if !defined(_MSC_VER) || _MSC_VER != 1938
369369
,
370370
typename std::enable_if<
371371
std::is_same<decltype(std::declval<D>()(std::declval<T>())), void>::value,
@@ -415,7 +415,7 @@ namespace detail {
415415
typename T,
416416
typename D
417417
// workaround a msvc bug https://developercommunity.visualstudio.com/t/MSVC-1938331290-preview-fails-to-comp/10505565
418-
#if _MSC_VER != 1938
418+
#if !defined(_MSC_VER) || _MSC_VER != 1938
419419
,
420420
typename std::enable_if<
421421
std::is_same<decltype(std::declval<D>()(std::declval<T>())), void>::value,

0 commit comments

Comments
 (0)