Skip to content

Commit

Permalink
fix for MSVC lacking support for P2564
Browse files Browse the repository at this point in the history
as suggested by horenmar in issue snitch-org#140, check against availability
of consteval propagation (P2564) instead of a specific MSVC version.
  • Loading branch information
CrustyAuklet committed May 16, 2024
1 parent 2c864b1 commit 78fa758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/runtime_tests/check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78fa758

Please sign in to comment.