Commit 246bdafc authored by Victor Zverovich's avatar Victor Zverovich

Add FMT_STRING macro for compile-time strings

parent e8055433
This diff is collapsed.
......@@ -1815,4 +1815,5 @@ TEST(FormatTest, ConstexprParseFormatString) {
TEST(FormatTest, UdlTemplate) {
EXPECT_EQ("foo", "foo"_format());
EXPECT_EQ(" 42", "{0:10}"_format(42));
EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), 42));
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment