Skip to content

Commit c59b8f1

Browse files
committed
Also allow compiled format for clang >= 12
1 parent 0f6e716 commit c59b8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/fmt/base.h

+3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ import std;
148148
#elif defined(__cpp_nontype_template_args) && \
149149
__cpp_nontype_template_args >= 201911L
150150
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
151+
#elif FMT_CLANG_VERSION >= 1200 && FMT_CPLUSPLUS >= 202002L
152+
// clang 12 already has enough support for {fmt} to use.
153+
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
151154
#else
152155
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 0
153156
#endif

0 commit comments

Comments
 (0)