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
+1 -1
View File
@@ -103,7 +103,7 @@ void format_value(buffer<Char>& buf, const T& value,
#endif
output << value;
output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
buf.resize(buf.size());
buf.try_resize(buf.size());
}
// Formats an object of type T that has an overloaded ostream operator<<.