mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Workaround broken UDL templates in GCC < 6.4
This commit is contained in:
parent
1f1b50707c
commit
dc22360c34
@ -131,11 +131,11 @@ FMT_END_NAMESPACE
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FMT_USE_UDL_TEMPLATE
|
#ifndef FMT_USE_UDL_TEMPLATE
|
||||||
// EDG front end based compilers (icc, nvcc) do not support UDL templates yet
|
// EDG front end based compilers (icc, nvcc) and GCC < 6.4 do not propertly
|
||||||
// and GCC 9 warns about them.
|
// support UDL templates and GCC >= 9 warns about them.
|
||||||
# if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \
|
# if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \
|
||||||
FMT_CUDA_VERSION == 0 && \
|
FMT_CUDA_VERSION == 0 && \
|
||||||
((FMT_GCC_VERSION >= 600 && FMT_GCC_VERSION <= 900 && \
|
((FMT_GCC_VERSION >= 604 && FMT_GCC_VERSION <= 900 && \
|
||||||
__cplusplus >= 201402L) || \
|
__cplusplus >= 201402L) || \
|
||||||
FMT_CLANG_VERSION >= 304)
|
FMT_CLANG_VERSION >= 304)
|
||||||
# define FMT_USE_UDL_TEMPLATE 1
|
# define FMT_USE_UDL_TEMPLATE 1
|
||||||
|
Loading…
Reference in New Issue
Block a user