This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: std_sstream.h - patch
- To: Benjamin Kosnik <bkoz@cygnus.com>
- Subject: Re: std_sstream.h - patch
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Thu, 27 May 1999 13:32:02 +0200 (CEST)
- cc: libstdc++@sourceware.cygnus.com
- Reply-To: Ryszard Kabatek <kabatek@chemie.uni-halle.de>
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