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


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


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