On Sun, 14 Nov 2010 04:09:22 -0800
Jonathan M Davis <jmdavisp...@gmx.com> wrote:

> If you are dealing with a class hierarchy and you want to know whether a base 
> class reference referes to a particular derived class object, I believe that 
> the 
> correct way to do it is cast it to the derived type and check whether it is 
> null. If it's non-null, then it is that derived type. If it's null, then it 
> isn't.

Oh, yes, thank you very much, Jonathan.

denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com

Reply via email to