Commit 973f4536 authored by jjaloszy2's avatar jjaloszy2 Committed by Davis E. King

Clear flags (#1190)

Set istream flags to 0 in old_deserialize_floating_point.  This was flagged by [[nodiscard]] warning in MS compiler.
parent ad88bbe8
......@@ -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')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment