Title
Inconsistent types for basic_filebuf::setbuf()
Status
tc1
Section
[filebuf.virtuals]
Submitter
Greg Comeau, Dietmar Kühl

Created on 1999-07-23.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [filebuf.virtuals] paragraph 9, change all uses of int in the description of setbuf() to streamsize.

Date: 1999-07-23.00:00:00

In [filebuf] the function setbuf() gets an object of type streamsize as second argument. However, in [filebuf.virtuals] paragraph 9 the second argument is of type int.

As far as I can see this is not really a contradiction because everything is consistent if streamsize is typedef to be int. However, this is almost certainly not what was intended. The same thing happened to basic_istream::ignore(), as described in issue 172.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1750
1999-07-23 00:00:00admincreate