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

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

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux