dynamic_cast Problem
Georg C. F. Greve
greve@gnu.org
Thu Dec 2 05:18:00 GMT 1999
Hi Everyone!
After I was able to work around the stringstream problem I now ran
into something else...
I have a structure where an abstract base class "Element" exists and I
derive several classes from it. One of them is "Logfile." Regardless
of why this makes sense and what is behind it, I need to do safe
downcasting from Element* to Logfile* at one point in my program.
As far as I know this should be done by dynamic_cast which would
result in a function like this:
--
-----BEGIN PGP MESSAGE-----
Version: 2.6.3i
Comment: Processed by Mailcrypt 3.5.4, an Emacs/PGP interface
iQCVAwUBOEZxaFZXgZXDxqJtAQGaogP/ayEveF4ZJuYoGecT5r8Kxw1V2EQboeZS
UA7XPYI+/utG7rTr2gDp24GvzmJwDaJU+XvEgO6R9Ew7fBUkvlkTOmPq/qBGUsDk
RQK0EJqBBWIvs3xtRrw8rnCxEYHWV8DxpJ1mgFkn+fOP1SOIhuv6G08gPC5Hm1Sk
pxdct5EW/L8=
=rIYd
-----END PGP MESSAGE-----
More information about the Gcc
mailing list