Make UDL tests not try to use UDLs when they are disabled
This commit is contained in:
parent
db49ecb4f7
commit
a079b9cff6
@ -228,13 +228,15 @@ if (CMAKE_CXX_STANDARD GREATER_EQUAL 20)
|
|||||||
|
|
||||||
# Compile-time argument name check
|
# Compile-time argument name check
|
||||||
expect_compile(format-string-name "
|
expect_compile(format-string-name "
|
||||||
#if defined(FMT_HAS_CONSTEVAL) && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
#if defined(FMT_HAS_CONSTEVAL) && \
|
||||||
|
FMT_USE_USER_DEFINED_LITERALS && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
||||||
using namespace fmt::literals;
|
using namespace fmt::literals;
|
||||||
fmt::print(\"{foo}\", \"foo\"_a=42);
|
fmt::print(\"{foo}\", \"foo\"_a=42);
|
||||||
#endif
|
#endif
|
||||||
")
|
")
|
||||||
expect_compile(format-string-name-error "
|
expect_compile(format-string-name-error "
|
||||||
#if defined(FMT_HAS_CONSTEVAL) && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
#if defined(FMT_HAS_CONSTEVAL) && \
|
||||||
|
FMT_USE_USER_DEFINED_LITERALS && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
||||||
using namespace fmt::literals;
|
using namespace fmt::literals;
|
||||||
fmt::print(\"{foo}\", \"bar\"_a=42);
|
fmt::print(\"{foo}\", \"bar\"_a=42);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user