This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: 0-length basic_istream::read() fails
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: 0-length basic_istream::read() fails
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 6 Dec 1999 14:46:19 -0800 (PST)
> Following some of the recent changes to istream, some of my code broke.
> I tracked it down to the fact that basic_istream::read is now setting
> failbit if the length argument __n is zero. (It also looks like
> it consumes a character in that case, which is lost.)
Fair enough. I changed your patch slightly, and made readsome consistent
with read. I believe the new, changed behavior is conformant to the
standard. . . actually, I think istream in general, is conforming now.
It's in, thanks.
-benjamin