std_sstream.h - patch

Ryszard Kabatek rysio@rumcajs.chemie.uni-halle.de
Thu Dec 30 07:30:00 GMT 1999


On Wed, 26 May 1999, Benjamin Kosnik wrote:
  
> I checked this in, thanks. I saved the dynamic_cast: it does not harm the 
> generated code, is legal c++, and clarifies that a conversion from derived
> to base is happening.
> 
A dynamic_cast from an inherited class to its base does not make any sence
at all, but it takes a lot of execution time. 
The time of a call of dynamic_cast is comparable to the one of the 'log'
function.


Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 (2466) Fax. +49 3461 46 2129



More information about the Libstdc++ mailing list