diff --git a/dlib/serialize.h b/dlib/serialize.h index f206f956b..1b14220cd 100644 --- a/dlib/serialize.h +++ b/dlib/serialize.h @@ -576,7 +576,7 @@ namespace dlib ) { std::ios::fmtflags oldflags = in.flags(); - in.flags(); + in.flags(static_cast(0)); std::streamsize ss = in.precision(35); if (in.peek() == 'i') {