Skip to content

Commit a2fd48e

Browse files
authored
Make FMT_USE_CONSTEVAL optional fmtlib#4545 (fmtlib#4546)
1 parent e28c371 commit a2fd48e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/fmt/base.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@
114114
#endif
115115

116116
// Detect consteval, C++20 constexpr extensions and std::is_constant_evaluated.
117-
#if !defined(__cpp_lib_is_constant_evaluated)
117+
#ifdef FMT_USE_CONSTEVAL
118+
// Use the provided definition.
119+
#elif !defined(__cpp_lib_is_constant_evaluated)
118120
# define FMT_USE_CONSTEVAL 0
119121
#elif FMT_CPLUSPLUS < 201709L
120122
# define FMT_USE_CONSTEVAL 0

0 commit comments

Comments
 (0)