mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
use proper check for non-type template parameters
This commit is contained in:
committed by
Victor Zverovich
parent
69bdc20a3c
commit
f085c3d7a0
@ -264,8 +264,9 @@ FMT_END_NAMESPACE
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
#ifndef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
||||||
# if defined(__cpp_nontype_template_parameter_class) && \
|
# if defined(__cpp_nontype_template_args) && \
|
||||||
(!FMT_GCC_VERSION || FMT_GCC_VERSION >= 903)
|
((FMT_GCC_VERSION >= 903 && __cplusplus >= 201709L) || \
|
||||||
|
__cpp_nontype_template_args >= 201911L)
|
||||||
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
|
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 1
|
||||||
# else
|
# else
|
||||||
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
|
# define FMT_USE_NONTYPE_TEMPLATE_PARAMETERS 0
|
||||||
|
Reference in New Issue
Block a user