[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nel] dynamic_cast pbs...
From: |
Loic Dachary |
Subject: |
Re: [Nel] dynamic_cast pbs... |
Date: |
Fri, 15 Mar 2002 13:32:25 +0100 |
Compiling with gcc-2.95.4 (on Debian) I do not see these messages.
Maybe this is a gcc-2.96 specific lossage. I don't remember the reasons for
Debian not to upgrade to gcc-2.96 but this one may be among them.
Cheers,
P.S. rtti is always enabled, there is only is a switch to disable it.
Lionel Berenguier writes:
>
> There is maybe a configuration problem with dynamic_cast in gcc. If someone
> (good in gcc) could check options, to see if RTTI is enabled, it would be
> helpfull.
>
> We have no problems here with dynamic_cast under Visual. It may be a
> solution to check GCC compiler in safe_cast() and avoid the nlassert, but we
> really use dynamic_cast() at other place in the code (ie not for check).
>
>
> Lionel.
>
> ----- Original Message -----
> From: "Alain Dutech" <address@hidden>
> To: "NeL" <address@hidden>
> Sent: Thursday, March 14, 2002 7:33 PM
> Subject: [Nel] dynamic_cast pbs...
>
>
> >
> > Hello,
> >
> > I've finally compiled and run snowballs2... with 0.13 fps !!!!!!!!!!! :-)
> > (ok, everything is software rendered).
> >
> > Still, I've got some asserts with dynamic_cast that pollute my screen.
> > I've tracked them down and it seems that dynamic_cast wont be bluffed
> > by pre-casting when using "Shape" objects.
> >
> > 02/03/14 18:02:13 AST16732 debug.h 384 : "dynamic_cast<T>(o)"
> > [...]
> >
> > To illustrate this, this is a list of all the calls to safe_cast
> > (which nlassert(dynamic_cast)) that trigger the assertion... My basic
> solution
> > was to transform safe_cast into static_cast each time!
--
Loic Dachary http://www.dachary.org/ address@hidden
12 bd Magenta http://www.senga.org/ address@hidden
75010 Paris T: 33 1 42 45 07 97 address@hidden
GPG Public Key: http://www.dachary.org/loic/gpg.txt