Fix handling of compile-time strings when including ostream.h (#768)

This commit is contained in:
Victor Zverovich
2018-06-10 19:05:27 +02:00
parent e3707ef14b
commit 9ff3b6af2e
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -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")));
}