From 7cbb29f61e0c5d174e74ef4660ae125d3af18981 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 25 Nov 2015 08:27:46 -0800 Subject: [PATCH] Make FormatBuf::size() const --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index 6cffc105..20aac4cb 100644 --- a/format.h +++ b/format.h @@ -1832,7 +1832,7 @@ class FormatBuf : public std::basic_streambuf { return ch; } - size_t size() { + size_t size() const { return this->pptr() - start_; } };