Title
stringbuf seekpos underspecified
Status
c++11
Section
[stringbuf.virtuals]
Submitter
Martin Sebor

Created on 2006-02-23.00:00:00 last changed 154 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change 27.7.1.3, p13 to read:

-13- Effects: Equivalent to seekoff(off_type(sp), ios_base::beg, which). Alters the stream position within the controlled sequences, if possible, to correspond to the stream position stored in sp (as described below).

  • If (which & ios_base::in) != 0, positions the input sequence.
  • If (which & ios_base::out) != 0, positions the output sequence.
  • If sp is an invalid stream position, or if the function positions neither sequence, the positioning operation fails. If sp has not been obtained by a previous successful call to one of the positioning functions (seekoff, seekpos, tellg, tellp) the effect is undefined.
Date: 2010-10-21.18:28:33

[ 2009-07 Frankfurt ]

Move to Ready.

Date: 2006-02-23.00:00:00

The effects of the seekpos() member function of basic_stringbuf simply say that the function positions the input and/or output sequences but fail to spell out exactly how. This is in contrast to the detail in which seekoff() is described.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg3070
2010-10-21 18:28:33adminsetmessages: + msg3069
2006-02-23 00:00:00admincreate