mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-29 02:03:36 +02:00
Forward arguments to work with views (#2068)
This commit is contained in:
committed by
GitHub
parent
3551f5d118
commit
fa43fd1444
+1
-1
@@ -295,7 +295,7 @@ TEST(OStreamTest, Move) {
|
||||
|
||||
TEST(OStreamTest, Print) {
|
||||
fmt::ostream out = fmt::output_file("test-file");
|
||||
out.print("The answer is {}.\n", 42);
|
||||
out.print("The answer is {}.\n", fmt::join(std::initializer_list<int>{42}, ", "));
|
||||
out.close();
|
||||
file in("test-file", file::RDONLY);
|
||||
EXPECT_READ(in, "The answer is 42.\n");
|
||||
|
||||
Reference in New Issue
Block a user