Fix handling of compile-time strings when including ostream.h (#768)
This commit is contained in:
1 parent
e3707ef14b
commit
9ff3b6af2e
2 files changed
+8
-3
No files matched your search
@@ -163,3 +163,7 @@ TEST(OStreamTest, Join) {
|
||||
int v[3] = {1, 2, 3};
|
||||
EXPECT_EQ("1, 2, 3", fmt::format("{}", fmt::join(v, v + 3, ", ")));
|
||||
}
|
||||
|
||||
TEST(OStreamTest, ConstexprString) {
|
||||
EXPECT_EQ("42", format(fmt("{}"), std::string("42")));
|
||||
}
|
||||
Reference in new issue
Block a user