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]

Re: std_sstream.h - patch



I wasn't aware of the "iffy" factor. 

I'll change the relevant bits of stringbuf/filebuf, and just remove
the dynamic_casts to streambuf.

-Benjamin

On 26 May 1999, Jason Merrill wrote:

> A dynamic_cast from derived to base is semantically equivalent to a
> static_cast, yes.  But as Nathan says, it indicates to the reader that
> run-time checks are needed, even if in practice they are not.


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