From a4e572c88c14440b673c58dee4cac5996d3574f0 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 17 Dec 2023 21:10:24 +0500 Subject: [PATCH] Enable consteval in MSVC VS2019 version 16.10 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 9bfee019..0c422a75 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -224,8 +224,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