This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

basic_ios::exceptions(iostate) patch


Yesterday I overlooked a bug in the basic_ios::exceptions(iostate)
function, 
here is the patch.

BTW The ios_base::exceptions member functions are public, 
perhaps they should be made protected?

Ryszard Kabatek



1999-01-26  Ryszard Kabatek  <kabatek@chemie.uni-halle.de>
 
        * bits/basic_ios.h: fix basic_ios::exceptions(iostate)


*** bits/basic_ios.h    Tue Jan 26 12:37:54 1999
--- basic_ios.h Tue Jan 26 12:40:20 1999
*************** namespace std {
*** 64,70 ****
      bool bad () const { return (rdstate () & badbit) != 0; }
  
      iostate exceptions () const { return ios_base::exceptions (); }
!     void exceptions (iostate __except) { ios_base::exceptions (); }
  
      // Constructor/destructor:
      explicit basic_ios (basic_streambuf<_CharT,_Traits>* __sb);
--- 64,70 ----
      bool bad () const { return (rdstate () & badbit) != 0; }
  
      iostate exceptions () const { return ios_base::exceptions (); }
!     void exceptions (iostate __except) { ios_base::exceptions
(__except); }
  
      // Constructor/destructor:
      explicit basic_ios (basic_streambuf<_CharT,_Traits>* __sb);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]