You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#ifndef FMT_USE_USER_DEFINED_LITERALS
// All compilers which support UDLs also support variadic templates. This// makes the fmt::literals implementation easier. However, an explicit check// for variadic templates is added here just in case.// For Intel's compiler both it and the system gcc/msc must support UDLs.
# defineFMT_USE_USER_DEFINED_LITERALS \
FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES && \
(FMT_HAS_FEATURE(cxx_user_literals) || \
(FMT_GCC_VERSION >= 407 && FMT_HAS_GXX_CXX11) || FMT_MSC_VER >= 1900) && \
(!defined(FMT_ICC_VERSION) || FMT_ICC_VERSION >= 1500)
#endif
Here, FMT_USE_USER_DEFINED_LITERALS contains defined, and clang produces warning for this:
#ifndef FMT_USE_USER_DEFINED_LITERALS
// All compilers which support UDLs also support variadic templates. This// makes the fmt::literals implementation easier. However, an explicit check// for variadic templates is added here just in case.// For Intel's compiler both it and the system gcc/msc must support UDLs.
#if FMT_USE_VARIADIC_TEMPLATES && FMT_USE_RVALUE_REFERENCES && \
(FMT_HAS_FEATURE(cxx_user_literals) || \
(FMT_GCC_VERSION >= 407 && FMT_HAS_GXX_CXX11) || FMT_MSC_VER >= 1900) && \
(!defined(FMT_ICC_VERSION) || FMT_ICC_VERSION >= 1500)
#defineFMT_USE_USER_DEFINED_LITERALS1
#else
#defineFMT_USE_USER_DEFINED_LITERALS0
#endif
The text was updated successfully, but these errors were encountered:
Here,
FMT_USE_USER_DEFINED_LITERALS
containsdefined
, and clang produces warning for this:This can be fixed, for instance:
The text was updated successfully, but these errors were encountered: