Double buffering no more

This commit is contained in:
Victor Zverovich
2020-07-10 20:35:14 -07:00
parent 36406509d9
commit a2c4fed981
12 changed files with 109 additions and 112 deletions
+2 -1
View File
@@ -151,7 +151,8 @@ TEST(OStreamTest, WriteToOStreamMaxSize) {
if (max_size <= fmt::detail::to_unsigned(max_streamsize)) return;
struct test_buffer : fmt::detail::buffer<char> {
explicit test_buffer(size_t size) { resize(size); }
explicit test_buffer(size_t size)
: fmt::detail::buffer<char>(nullptr, size, size) {}
void grow(size_t) {}
} buffer(max_size);