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]

Re: basic_ios::exceptions(iostate) patch



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

I would say that at the very least, these functions should be mangled. Ie,
the _M_ prefix should be appended, transforming

iostate rdstate() const;

to

iostate _M_rdstate() const;

Your other suggestion is to make them protected. I would also be
interested in a patch that does that.

-Benjamin