SGL-UT / gnsstk

The goal of the gnsstk project is to provide an open source library to the satellite navigation community--to free researchers to focus on research, not lower level coding.
Other
113 stars 50 forks source link

setfill calls have no effect #15

Open rconde01 opened 1 year ago

rconde01 commented 1 year ago

https://github.com/SGL-UT/gnsstk/blob/c4b1b21124a093a1ee8f19c09b9d258d4a6d12aa/core/lib/FileHandling/RINEX3/Rinex3ObsHeader.cpp#L887

Visual Studio warns that setfill is nodiscard and the result is not being used here.

According to https://en.cppreference.com/w/cpp/io/manip/setfill, the result must be "streamed" into a stream to have an effect.