Listing 9 is based on the assumption that the compiler optimizes away the empty base classes.
清单9基于编译器会优化空基类的假设。
For instance, Microsoft Compiler uses process-neutral offsets to address base objects for virtually inherited classes: thus, this issue does not arise.
例如,MicrosoftCompiler使用进程无关的偏移量来为虚拟继承类指定基对象,因而不存在这个问题。
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.
它包括所有类的数据成员,所有类的成员函数(或者显式声明,或者由编译器隐式生成),所有类的基类和所有它们的成员。
I set up the compiler so I have to specify the override annotation so as to clarify which methods are overriding base class methods.
我对编译器进行了设置,所以我必须指定override注释,以便指明哪些方法要覆盖基类的方法。
Maintaining as thorough a common code base for various architectures as possible, using a new compiler
使用新的编译器,尽可能为多种体系结构维持一个详尽的通用代码基(codebase)。
In the above code snippet, the compiler will warn you about the not exported base class and the not exported class of the data member.
在上面的代码片断,编译器会警告你没有导出基类和类的数据成员。
It works together with the compiler to ensure that the code base meets a certain level of quality.
它与编译器一起确保代码满足一定级别的质量要求。
Dynamic binding lets the compiler determine at run time whether to use a function defined in the base or derived class.
动态绑定使编译器能够在运行时决定是使用基类中定义的函数还是派生类中定义的函数。
Remember that pure abstract base classes provide little more than a table of function entry points, and the entry points are allocated by the compiler of the object.
记住纯抽象基类只是提供了函数入口点的表,入口点是由编译器分配的。
The compiler assumes the base type of the bit field to be unsigned.
编译器假定位域的基类型无符号。
The compiler assumes the base type of the bit field to be unsigned.
编译器假定位域的基类型无符号。
应用推荐