Title
Sync's return value
Status
tc1
Section
[istream.unformatted]
Submitter
Matt Austern

Created on 1998-08-06.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [istream.unformatted], paragraph 36, change "returns traits::eof()" to "returns -1".

Date: 1998-08-06.00:00:00

The Effects clause for sync() (27.6.1.3, paragraph 36) says that it "calls rdbuf()->pubsync() and, if that function returns -1 ... returns traits::eof()."

That looks suspicious, because traits::eof() is of type traits::int_type while the return type of sync() is int.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg144
1998-08-06 00:00:00admincreate