This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Allow setbuf(_s, 1)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]