From a07b1eef5290c40bfcf0b2f067ee840277e61cfb Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Tue, 19 Dec 2023 02:00:11 +0500 Subject: [PATCH] Enable consteval in MSVC VS2019 version 16.10 (#3757) Signed-off-by: Vladislav Shchapov --- include/fmt/core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f2e03b7cb98f..3b5bd9ae4039 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -227,8 +227,9 @@ __apple_build_version__ >= 14000029L) && \ FMT_CPLUSPLUS >= 202002L) || \ (defined(__cpp_consteval) && \ - (!FMT_MSC_VERSION || _MSC_FULL_VER >= 193030704)) -// consteval is broken in MSVC before VS2022 and Apple clang before 14. + (!FMT_MSC_VERSION || FMT_MSC_VERSION >= 1929)) +// consteval is broken in MSVC before VS2019 version 16.10 and Apple clang +// before 14. # define FMT_CONSTEVAL consteval # define FMT_HAS_CONSTEVAL # else