This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: basic_ios::exceptions(iostate) patch
- To: Nathan Myers <ncm@best.com>
- Subject: Re: basic_ios::exceptions(iostate) patch
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Wed, 27 Jan 1999 12:32:07 +0100 (CET)
- cc: libstdc++-v3@cygnus.com
- Reply-To: kabatek@Chemie.UNI-Halle.DE
On Tue, 26 Jan 1999, Nathan Myers wrote:
>
> Benjamin wrote:
> > On Tue, 26 Jan 1999, Ryszard Kabatek wrote:
> > > BTW The ios_base::exceptions member functions are public,
> > > perhaps they should be made protected?
> >
> > ... do only derived classes call the exceptions member functions?
>
> Actually in ios_base it should be called _M_exceptions(). We could add
> an inline public member exceptions() that calls _M_exceptions(), but it
> would need to be guarded with a CPP "GNU extensions" flag.
>
> We need to assign a name for such a flag, or several, and wrap all
> the non-standard extensions (e.g. the STL stuff not in ext/).
>
Currently there are no _M_exceptions() member functions in ios_base.
There are some non-standard public member functions in ios_base.
iostate rdstate() const;
void clear(iostate);
iostate exceptions () const;
void exceptions(iostate);
It would be better to make all them protected.
I think it is not necessary to have this extensions.
Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 Fax. +49 3461 46 2129