[Patch] Allow setbuf(_s, 1)

Paolo Carlini pcarlini@unitus.it
Wed Jun 18 18:31:00 GMT 2003


Benjamin Kosnik wrote:

>>Seems to me less safe, since streamsize is a *signed* type...
>>(mind libstdc++/11095? ;)
>>    
>>
>True.
>
>__s && __n > 0 would work tho...
>
Yep... and stringbuf/setbuf also misses that '> 0'. Will do later today.

Paolo.



More information about the Libstdc++ mailing list