Test writing to ostream

This commit is contained in:
vitaut
2016-03-04 09:04:28 -08:00
parent 6883d6e724
commit 0867c1b447
2 changed files with 56 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ class CharConverter : public fmt::internal::ArgVisitor<CharConverter, void> {
};
// Write the content of w to os.
void write(std::ostream &os, fmt::MemoryWriter &w) {
void write(std::ostream &os, fmt::Writer &w) {
const char *data = w.data();
typedef internal::MakeUnsigned<std::streamsize>::Type UnsignedStreamSize;
UnsignedStreamSize size = w.size();