Unverified Commit 3b6e409c authored by Daniela Engert's avatar Daniela Engert Committed by GitHub

Enable `consteval` for msvc 17.0-pre5 (#2559)

parent 249f03bb
...@@ -258,8 +258,8 @@ ...@@ -258,8 +258,8 @@
#ifndef FMT_CONSTEVAL #ifndef FMT_CONSTEVAL
# if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \ # if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \
__cplusplus > 201703L && !defined(__apple_build_version__)) || \ __cplusplus > 201703L && !defined(__apple_build_version__)) || \
(defined(__cpp_consteval) && \ (defined(__cpp_consteval) && (!FMT_MSC_VER || _MSC_FULL_VER >= 193030704))
!FMT_MSC_VER) // consteval is broken in MSVC and Apple clang 13. // consteval is broken in MSVC before VS2022 and Apple clang 13.
# define FMT_CONSTEVAL consteval # define FMT_CONSTEVAL consteval
# define FMT_HAS_CONSTEVAL # define FMT_HAS_CONSTEVAL
# else # else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment