This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need help with dynamic_cast across shared libraries with gcc 3.2.3.


Oops, forgot:

[1] This will be NULL if the Base class instance is not of the derived type, and the derived pointer type otherwise -- by CONVENTION (and due diligence!).  The Base class doesn't actually KNOW anything about the methods that the other class supports (it doesn't even know, nor need to know, that the Derived class is derived from the Base class).  A forward declaration that the class exists "somewhere" is sufficient to specify the pointer.

--Eljay 


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