Open Romain-Geissler-1A opened 1 year ago
stream_offset
is defined as boost::intmax_t
here: https://github.com/boostorg/iostreams/blob/4d2e763ba8b88f3350fbea29b54507a3f5adf0f0/include/boost/iostreams/positioning.hpp#L36
std::streamoff
is implementation defined; usually long long
. See Cpp Reference
What platform (compiler, standard library) are you using?
This happened with clang 15 (so a release version) which was using glibc headers (the future 2.37 release, I think when I posted this pull request I used a snapshot of the master branch as of mid december) and libstdc++ headers (the future gcc 13 release, also a snapshot as of mid december).
Note: I am not sure this check on the offset is valid in the first place, I don't know how possible it is that
stream_offset
is a different type thanstd::streamoff
in which case this check is totally pointless as always false.