RTTI
- 网络执行期类型信息
-
Disabling RTTI might help produce an executable of a smaller size .
禁用RTTI可能有助于产生更小的可执行文件。
-
Unlike cl , the g + + compiler does not need any special option to turn RTTI on .
与cl不同,g++编译器不需要任何特殊的选项以打开RTTI。
-
This requirement on RTTI was a restricting factor in the environments with limited resources that were being targeted on the project .
如果项目中的某些目标资源是有限的,对于RTTI的需求会成为这种环境中的限制性因素。
-
If the sources don 't use dynamic_cast or the typeid operator , Run Time Type Identification ( RTTI ) might be disabled .
如果源代码没有使用dynamiccast或者typeid操作符,那么就可以禁用运行时类型识别(RTTI)。
-
Note that disabling RTTI in a code that contains dynamic_cast or typeid might produce undesirable effects , including code crash .
请注意,在包含dynamiccast或者typeid的代码中禁用RTTI,可能会产生一些负面的影响,包括代码崩溃。
-
However , just like the / GR-option in Visual Studio , g + + has the-fno-rtti option that explicitly turns off RTTI .
然而,与VisualStudio中的/GR-选项一样,g++提供了-fno-rtti选项,用以显式地关闭RTTI。
-
The interaction between the explicit interface , proxy , invoker , and component configurator implementations relied heavily on C + + Run-Time Type Information ( RTTI ) .
这个方法的重要后果是显而易见的。显式接口、代理、调用程序和组件配置器实现间的交互严重依赖于C++实时类型信息(Run-TimeTypeInformation,RTTI)。