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.
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