Switch to std::ostream::char_type for StreamState

pull/398/head
Jeffrey Walton 2017-03-18 08:11:44 -04:00
parent 342b4505fb
commit ad47231dc0
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 3 deletions

View File

@ -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