[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nel] dynamic_cast pbs...
From: |
Alain Dutech |
Subject: |
Re: [Nel] dynamic_cast pbs... |
Date: |
Fri, 15 Mar 2002 10:46:30 +0100 |
Hello Lionel,
I don't think that dynamic cast by itself is at fault. In fact, in many cases,
a call to "safe_cast" work properly, and many direct call to dynamic_cast
are also ok. The problem only arises in the few cases I have mentionned,
i.e: when casting BEFORE using dynamic_cast. I may be wrong, but I don't
think that casting Shape to (IShape*) before safe_cast will utterly transform
the object pointed by Shape to an IShape... But then, I haven't had the time
to check the inheritance of both Shape and CMesh or CParticleSystemShape
for exemple.
Alain