173. Inconsistent types for basic_filebuf::setbuf()

Section: [filebuf.virtuals] Status: TC1 Submitter: Greg Comeau, Dietmar Kühl Opened: 1999-07-23 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [filebuf.virtuals].

View all issues with TC1 status.


In 30.9.2 [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.

Proposed resolution:

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