mirror of https://github.com/davisking/dlib.git
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:
parent
ad88bbe8c6
commit
973f453630
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue