Alternative schemes for implementing vptr?
问题 This question is not about the C++ language itself(ie not about the Standard) but about how to call a compiler to implement alternative schemes for virtual function. The general scheme for implementing virtual functions is using a pointer to a table of pointers. class Base { private: int m; public: virtual metha(); }; equivalently in say C would be something like struct Base { void (**vtable)(); int m; } the first member is usually a pointer to a list of virtual functions, etc. (a piece of