Skip to content

Commit

Permalink
Enable consteval for msvc 17.0-pre5 (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaE authored Oct 23, 2021
1 parent 249f03b commit 3b6e409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b6e409

Please sign in to comment.