Detect user-defined literal templates

This commit is contained in:
Victor Zverovich
2017-11-04 08:23:24 -07:00
parent a7e986166a
commit 8ca6e76dbc
2 changed files with 35 additions and 0 deletions

View File

@@ -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