Move misplaced join overloads to fmt/ranges.h

This commit is contained in:
Victor Zverovich
2024-01-01 16:28:59 -08:00
parent 0b39d67103
commit 50565f9853
8 changed files with 123 additions and 124 deletions
+1 -2
View File
@@ -252,8 +252,7 @@ TEST(ostream_test, move_while_holding_data) {
TEST(ostream_test, print) {
fmt::ostream out = fmt::output_file("test-file");
out.print("The answer is {}.\n",
fmt::join(std::initializer_list<int>{42}, ", "));
out.print("The answer is {}.\n", 42);
out.close();
file in("test-file", file::RDONLY);
EXPECT_READ(in, "The answer is 42.\n");