Enable consteval for msvc 17.0-pre5

This commit is contained in:
Daniela Engert 2021-10-23 15:26:11 +02:00
parent 249f03bbb7
commit 7478420f8e
No known key found for this signature in database
GPG Key ID: 7B95EE52040C5975

View File

@ -258,8 +258,8 @@
#ifndef FMT_CONSTEVAL
# if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \
__cplusplus > 201703L && !defined(__apple_build_version__)) || \
(defined(__cpp_consteval) && \
!FMT_MSC_VER) // consteval is broken in MSVC and Apple clang 13.
(defined(__cpp_consteval) && (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
// consteval is broken in MSVC before VS2022 and Apple clang 13.
# define FMT_CONSTEVAL consteval
# define FMT_HAS_CONSTEVAL
# else