Title
time_get fails to set eofbit
Status
cd1
Section
[category.time]
Submitter
Martin Sebor

Created on 2000-06-22.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Two alternative resolutions were proposed. The LWG chose this one because it was more consistent with the way eof is described for other input facets.

Date: 2010-10-21.18:28:33

Proposed resolution:

Add paragraph 2 to section 22.2.5.1 with the following text:

If the end iterator is reached during parsing by any of the get() member functions, the member sets ios_base::eofbit in err.

Date: 2000-06-22.00:00:00

There is no requirement that any of time_get member functions set ios::eofbit when they reach the end iterator while parsing their input. Since members of both the num_get and money_get facets are required to do so (22.2.2.1.2, and 22.2.6.1.2, respectively), time_get members should follow the same requirement for consistency.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1999
2010-10-21 18:28:33adminsetmessages: + msg1998
2000-06-22 00:00:00admincreate