Pointers to virtual member functions. How does it work?
It works because the Standard says that’s how it should happen. I did some tests with GCC, and it turns out for virtual functions, GCC stores the virtual table offset of the function in question, in bytes. struct A { virtual void f() { } virtual void g() { } }; int main() { union … Read more