首页>
外国专利>
Constructor Argument Optimization in Object Model for Folding Multiple Casts Expressions
Constructor Argument Optimization in Object Model for Folding Multiple Casts Expressions
展开▼
机译:折叠多个强制转换表达式的对象模型中的构造函数参数优化
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method and computer program product, for providing an optimization for a most derived object during compile time are provided. The optimization determines whether a most derived class object is present during a compile time. Also, the optimization utilizes the most derived class object to obtain a location of a virtual base for the most derived class object during the compile time, and provides the virtual base of the most derived class object during the compile time. The method is executed for a constructor and/or a destructor. The constructor or destructor contains arguments which require conversion to a base type, and the conversion is performed at compile-time instead of at runtime.
展开▼