From ad47231dc08200fbd9b45e4a00c117080f16209a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 Mar 2017 08:11:44 -0400 Subject: [PATCH] Switch to std::ostream::char_type for StreamState --- validate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validate.h b/validate.h index 2da9b4fb..d5cbc0bf 100644 --- a/validate.h +++ b/validate.h @@ -126,7 +126,7 @@ class StreamState { public: StreamState(std::ostream& out) - : m_out(out), m_fmt(out.flags()), m_prec(out.precision()), m_fill(out.fill()) + : m_out(out), m_prec(out.precision()), m_fmt(out.flags()), m_fill(out.fill()) { } @@ -139,9 +139,9 @@ public: private: std::ostream& m_out; - std::ios_base::fmtflags m_fmt; std::streamsize m_prec; - char m_fill; + std::ios_base::fmtflags m_fmt; + std::ostream::char_type m_fill; }; // Safer functions on Windows for C&A, https://github.com/weidai11/cryptopp/issues/55