Listing 9 is based on the assumption that the compiler optimizes away the empty base classes.
清单9基于编译器会优化空基类的假设。
2
For instance, Microsoft Compiler uses process-neutral offsets to address base objects for virtually inherited classes: thus, this issue does not arise.
It includes all class data members, all class member functions (either explicitly declared, or implicitly generated by the compiler), all base classes of the class, and all their members. Consider.