basic_ios::fail() patch

Ryszard Kabatek rysio@rumcajs.chemie.uni-halle.de
Mon Jan 25 01:42:00 GMT 1999


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 (); }



More information about the Libstdc++ mailing list