nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] dynamic_cast pbs...


From: Lionel Berenguier
Subject: Re: [Nel] dynamic_cast pbs...
Date: Fri, 15 Mar 2002 10:20:15 +0100

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!
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]