From 914853716b347d8ba8d835d5bdff9c25ade228c1 Mon Sep 17 00:00:00 2001 From: Michael Kasperovich Date: Wed, 18 Nov 2015 22:02:45 +0300 Subject: [PATCH] Fix gcc errors. --- format.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/format.h b/format.h index ce4e6f0c..dab9f8df 100644 --- a/format.h +++ b/format.h @@ -2638,6 +2638,7 @@ template > class basic_formatbuf : public std::basic_streambuf { typedef typename std::basic_streambuf::int_type int_type; + typedef typename std::basic_streambuf::traits_type traits_type; Buffer& buffer_; @@ -2648,7 +2649,7 @@ public: setp(start, start + buffer_.size(), start + buffer_.capacity()); } - virtual int_type overflow(int_type _Meta = Traits::eof()) { + virtual int_type overflow(int_type) { buffer_.reserve(buffer_.capacity() * 2); Elem* start = &buffer_[0]; setp(start, start + buffer_.size(), start + buffer_.capacity()); @@ -2657,7 +2658,7 @@ public: } size_t size() { - return pptr() - pbase(); + return this->pptr() - this->pbase(); } };