From 78fa7585f50ebb115774b8afbf85a7700a27eced Mon Sep 17 00:00:00 2001 From: Ethan Slattery Date: Thu, 16 May 2024 13:11:21 -0700 Subject: [PATCH] fix for MSVC lacking support for P2564 as suggested by horenmar in issue #140, check against availability of consteval propagation (P2564) instead of a specific MSVC version. --- tests/runtime_tests/check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtime_tests/check.cpp b/tests/runtime_tests/check.cpp index f7d3cd0b..49504afb 100644 --- a/tests/runtime_tests/check.cpp +++ b/tests/runtime_tests/check.cpp @@ -534,7 +534,7 @@ SNITCH_WARNING_PUSH SNITCH_WARNING_DISABLE_PRECEDENCE SNITCH_WARNING_DISABLE_ASSIGNMENT -#if defined(SNITCH_COMPILER_MSVC) && _MSC_VER >= 1937 && _MSC_VER <= 1938 +#if defined(__cpp_consteval) && __cpp_consteval <= 202211L // Regression in MSVC compiler // https://github.com/snitch-org/snitch/issues/140 // https://developercommunity.visualstudio.com/t/Regression:-False-positive-C7595:-std::/10509214