Clear flags (#1190)

Set istream flags to 0 in old_deserialize_floating_point.  This was flagged by [[nodiscard]] warning in MS compiler.
This commit is contained in:
jjaloszy2 2018-03-09 21:06:58 -05:00 committed by Davis E. King
parent ad88bbe8c6
commit 973f453630
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ namespace dlib
)
{
std::ios::fmtflags oldflags = in.flags();
in.flags();
in.flags(static_cast<std::ios_base::fmtflags>(0));
std::streamsize ss = in.precision(35);
if (in.peek() == 'i')
{