mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-04 03:40:49 +02:00
Add FMT_STRING macro for compile-time strings
This commit is contained in:
+651
-637
File diff suppressed because it is too large
Load Diff
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user