mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Add FMT_STRING macro for compile-time strings
This commit is contained in:
parent
e805543341
commit
246bdafc74
1288
include/fmt/format.h
1288
include/fmt/format.h
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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user