This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
basic_ios::exceptions(iostate) patch
- To: Benjamin Kosnik <bkoz@cygnus.com>
- Subject: basic_ios::exceptions(iostate) patch
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Tue, 26 Jan 1999 12:10:53 +0100
- CC: libstdc++-v3@cygnus.com
- Organization: Martin-Luther-Universitaet Halle-Wittenberg
- Reply-To: kabatek@Chemie.UNI-Halle.DE
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);