mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-25 20:21:43 +02:00
Detect user-defined literal templates
This commit is contained in:
@@ -1812,3 +1812,9 @@ TEST(FormatTest, ConstexprParseFormatString) {
|
||||
static_assert(parse_string("{foo}"), "");
|
||||
static_assert(parse_string("{:}"), "");
|
||||
}
|
||||
|
||||
#if FMT_UDL_TEMPLATE
|
||||
TEST(FormatTest, UdlTemplate) {
|
||||
EXPECT_EQ("foo", "foo"_format());
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user