use proper check for non-type template parameters
This commit is contained in:
parent
69bdc20a3c
commit
f085c3d7a0
@ -264,8 +264,9 @@ FMT_END_NAMESPACE
|
||||
#endif
|
||||
|
||||
#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
||||
# if defined(__cpp_nontype_template_parameter_class) && \
|
||||
(!FMT_GCC_VERSION || FMT_GCC_VERSION >= 903)
|
||||
# if defined(__cpp_nontype_template_args) && \
|
||||
((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
|
||||
__cpp_nontype_template_args >= 201911L)
|
||||
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
|
||||
# else
|
||||
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
|
||||
|
Loading…
Reference in New Issue
Block a user