From 99b92c87365aa3af68f3cc7818efb6126985fe4c Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 14 Nov 2017 13:17:47 -0800 Subject: Changes imported from Abseil "staging" branch: - 79d5e27b30551028a35084bf0f314d14339f816b Adds "()" suffix for Minutes() and ToDoubleHours() in com... by Abseil Team - 7d43f4d8f056066bd8e4577e15cde6807f6191ec Change type traits tests to static_asserts; Add trivially... by Alex Strelnikov - b443886fd36b240df78683c676b7ebae07c9e91a Internal cleanup by Abseil Team - ef226810f398f0980e2158bfa352ab8ac5d97d83 Avoid weak virtual table warnings (-Wweak-vtables) and re... by Jorg Brown - 76911667bed455c2c7330f8ee27b959bac032e41 Internal change by Abseil Team GitOrigin-RevId: 79d5e27b30551028a35084bf0f314d14339f816b Change-Id: I752b04c882ff6677af7ee91b1e4f424417a1e4eb --- absl/strings/internal/ostringstream.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'absl/strings/internal/ostringstream.h') diff --git a/absl/strings/internal/ostringstream.h b/absl/strings/internal/ostringstream.h index 013146599d3d..6e1325b9140f 100644 --- a/absl/strings/internal/ostringstream.h +++ b/absl/strings/internal/ostringstream.h @@ -75,18 +75,8 @@ class OStringStream : private std::basic_streambuf, public std::ostream { private: using Buf = std::basic_streambuf; - Buf::int_type overflow(int c) override { - assert(s_); - if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof())) - s_->push_back(static_cast(c)); - return 1; - } - - std::streamsize xsputn(const char* s, std::streamsize n) override { - assert(s_); - s_->append(s, n); - return n; - } + Buf::int_type overflow(int c) override; + std::streamsize xsputn(const char* s, std::streamsize n) override; std::string* s_; }; -- cgit 1.4.1