mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-24 04:24:55 +08:00
Also allow compiled format for clang >= 12 (#4001)
This commit is contained in:
parent
9653eed8e7
commit
2bf811b1d9
@ -148,6 +148,9 @@ import std;
|
|||||||
#elif defined(__cpp_nontype_template_args) && \
|
#elif defined(__cpp_nontype_template_args) && \
|
||||||
__cpp_nontype_template_args >= 201911L
|
__cpp_nontype_template_args >= 201911L
|
||||||
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
|
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
|
||||||
|
#elif FMT_CLANG_VERSION >= 1200 && FMT_CPLUSPLUS >= 202002L
|
||||||
|
// clang 12 already has enough support for {fmt} to use.
|
||||||
|
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
|
||||||
#else
|
#else
|
||||||
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 0
|
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user