Title
Pbackfail description inconsistent
Status
tc1
Section
[streambuf.virt.pback]
Submitter
Nathan Myers

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

Messages

Date: 2010-10-21.18:28:33

Rationale:

Note deliberate reordering of arguments for clarity in addition to the correction of the argument value.

Date: 2010-10-21.18:28:33

Proposed resolution:

In [streambuf.virt.pback], paragraph 1, change:

"traits::eq(*gptr(),traits::to_char_type( c))"

to

"traits::eq(traits::to_char_type(c),gptr()[-1])"

Date: 1998-08-06.00:00:00

The description of the required state before calling virtual member basic_streambuf<>::pbackfail requirements is inconsistent with the conditions described in 27.5.2.2.4 [lib.streambuf.pub.pback] where member sputbackc calls it. Specifically, the latter says it calls pbackfail if:

    traits::eq(c,gptr()[-1]) is false

where pbackfail claims to require:

    traits::eq(*gptr(),traits::to_char_type(c)) returns false

It appears that the pbackfail description is wrong.

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