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.