I was performing research into some issues with a C++ library and ensuring type information is consistent between the application and the shared object. I'm also interested in ensuring an EqualObject
comparison works, meaning I indeed have the same object, and not two objects that happen to be equal under operator==
.
This answer state to anchor a vtable in a header. I'm not familiar with the technique. Or I've heard it called by another name.
What is vtable anchoring, and how does it work?
I'm also aware of dynamic_cast, throw, typeid don't work with shared libraries from the GCC FAQ.