Fix a conflict between fmt::join and fmt/ostream.h (#744)

This commit is contained in:
Victor Zverovich
2018-05-21 20:21:06 -07:00
parent 6ebc1a967d
commit 5ad54256c5
2 changed files with 19 additions and 6 deletions

View File

@@ -158,3 +158,8 @@ TEST(OStreamTest, WriteToOStreamMaxSize) {
} while (size != 0);
fmt::internal::write(os, buffer);
}
TEST(OStreamTest, Join) {
int v[3] = {1, 2, 3};
EXPECT_EQ("1, 2, 3", fmt::format("{}", fmt::join(v, v + 3, ", ")));
}