On 2015-02-26 20:22, Jean-Marc Bourguet wrote:
> Hi all,
>
> basic_istream::seekg has two versions, one taking a pos_type, the other
> taking a off_type and a seekdir.
>
> The first is defined to clear the eofbit before constructing the sentry.
> The second isn't. Does someone knows
> why?
>
> AFAIK, the discrepancy has been added when fixing library issue 60,
> which refers to n1219. But if I've missed the rationale
> for the difference if it was present at one of those places.
>
A likely reason is that the change was applied only once, instead of for
both versions of seekg.
There is a new library issue #2244 proposing that this should be fixed: