This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

basic_ios::fail() patch



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