This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
basic_ios::fail() patch
- To: Benjamin Kosnik <bkoz@cygnus.com>
- Subject: basic_ios::fail() patch
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Mon, 25 Jan 1999 10:43:07 +0100
- CC: libstdc++-v3@cygnus.com
- Organization: Martin-Luther-Universitaet Halle-Wittenberg
- Reply-To: kabatek@Chemie.UNI-Halle.DE
1999-01-25 Ryszard Kabatek <kabatek@chemie.uni-halle.de>
* bits/basic_ios.h: fix basic_ios::fail()
*** bits/basic_ios.h Fri Jan 1 04:14:23 1999
--- basic_ios.h Mon Jan 25 11:24:50 1999
*************** namespace std {
*** 60,66 ****
void setstate (iostate __state);
bool good () const { return rdstate () == 0; }
bool eof () const { return (rdstate () & eofbit) != 0; }
! bool fail () const { return (rdstate () & (eofbit | failbit)) !=
0; }
bool bad () const { return (rdstate () & badbit) != 0; }
iostate exceptions () const { return ios_base::exceptions (); }
--- 60,66 ----
void setstate (iostate __state);
bool good () const { return rdstate () == 0; }
bool eof () const { return (rdstate () & eofbit) != 0; }
! bool fail () const { return (rdstate () & (badbit | failbit)) !=
0; }
bool bad () const { return (rdstate () & badbit) != 0; }
iostate exceptions () const { return ios_base::exceptions (); }