On 2008-06-08 10:30, kuangye wrote:
Hi all.
Is there any document/paper/book that discus about how to implement
dynamic_cast.....
Are you trying to implement your own C++ compiler?
This is kind of off-topic but I do not know of a better place to ask.
I think that dynamic_cast is usually implemented by looking at the
objects vtable pointer, if it points to the type you are casting to then
the cast succeeds. You also have to check if you are trying to cast to a
subtype of the current object.
--
Erik Wikström