Title
Issue on basic_istream::seekg
Status
c++17
Section
[istream.unformatted]
Submitter
Juan Soulie

Created on 2013-03-04.00:00:00 last changed 90 months ago

Messages

Date: 2015-05-22.19:00:31

Proposed resolution:

This wording is relative to N3691.

  1. Change [istream.unformatted] p43 as indicated:

    basic_istream<charT,traits>& seekg(off_type off, ios_base::seekdir dir);
    

    -43- Effects: Behaves as an unformatted input function (as described in 27.7.2.3, paragraph 1), except that the function first clears eofbit, it does not count the number of characters extracted, and does not affect the value returned by subsequent calls to gcount(). […]

Date: 2015-05-06.00:00:00

[ 2015-05-06 Lenexa: Move to Ready ]

MC: This was just missed when we added "the function first clears eofbit" to the other overload, Daniel agrees. Editing mistake.

Move to Ready, consensus.

Date: 2013-10-17.00:00:00

[ 2013-10-17: Daniel provides concrete wording ]

It seems that the tiny sentence "SIMILARLY for 27.7.1.3/43 (seekg)." had been overlooked. I agree that the wording needs to be applied here as well.

Date: 2013-03-04.00:00:00

When issue 1445 was resolved by adopting N3168, it exposed the need to modify both overloads of basic_istream::seekg (by inserting "the function clears eofbit," after "except that"), but the fix applied to the text apparently forgets the second overload at [istream.unformatted] p43.

History
Date User Action Args
2017-07-30 20:15:43adminsetstatus: wp -> c++17
2015-10-27 16:52:45adminsetstatus: ready -> wp
2015-05-22 19:00:31adminsetmessages: + msg7428
2015-05-22 19:00:31adminsetstatus: new -> ready
2013-10-17 19:29:37adminsetmessages: + msg6750
2013-10-17 19:29:37adminsetmessages: + msg6749
2013-03-04 00:00:00admincreate