Add FMT_STRING macro for compile-time strings

This commit is contained in:
Victor Zverovich 2017-11-11 07:39:12 -08:00
parent e805543341
commit 246bdafc74
2 changed files with 652 additions and 637 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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));
}