Title
wrong type for not_eof()
Status
nad editorial
Section
[char.traits.specializations]
Submitter
Dietmar Kühl

Created on 2008-04-23.00:00:00 last changed 167 months ago

Messages

Date: 2011-03-05.00:04:13

Rationale:

Already fixed in WP.

Date: 2010-10-21.18:28:33

Proposed resolution:

In [char.traits.specializations.char], [char.traits.specializations.char16_t], [char.traits.specializations.char32_t], and [char.traits.specializations.wchar_t] correct the argument type from char_type to int_type.

Date: 2008-04-23.00:00:00

In Table 56 (Traits requirements) the not_eof() member function is using an argument of type e which denotes an object of type X::int_type. However, the specializations in [char.traits.specializations] all use char_type. This would effectively mean that the argument type actually can't represent EOF in the first place. I'm pretty sure that the type used to be int_type which is quite obviously the only sensible argument.

This issue is close to being editorial. I suspect that the proposal changing this section to include the specializations for char16_t and char32_t accidentally used the wrong type.

History
Date User Action Args
2011-03-05 00:04:13adminsetmessages: + msg5588
2010-10-21 18:28:33adminsetmessages: + msg3967
2008-04-23 00:00:00admincreate