Increasingly, objects are "dynamic" in the sense that their structure and behavior is not captured by a static type, or at least not one that the compiler knows about when compiling your program.
对象的意义变得越来越“动态”,它们的结构和行为无法通过静态类型来捕获,或者至少编译器在编译程序时无法得知对象的结构和行为。
Yes. It triggers "undefined behavior"; the compiler is entitled to crash your program the moment you do it, or worse.
是的。它触发“未定义行为”,编译器是有权使程序崩溃的时刻你做,或者更糟。
Allows you to set compilation properties defining compiler behavior, such as compiler warnings, optimizations, and compilation constants.
可用来设定定义编译器行为的编译属性,例如编译器警告、最佳化和编译常数。
It triggers "undefined behavior"; the compiler is entitled to crash your program the moment you do it, or worse.
它触发“未定义行为”,编译器是有权使程序崩溃的时刻你做,或者更糟。
Leaving it to the compiler to implement the default behavior is simpler, less error-prone, and often leads to better object code.
留给编译器来实现缺省行为更简单些,更不易出错,并且常常会产生更好的目标码。
The reason for this behavior is that, at compile time, the compiler only knows that t is a reference type, and therefore must use the default operators that are valid for all reference types.
这种情况的原因在于,编译器在编译时仅知道t是引用类型,因此必须使用对所有引用类型都有效的默认运算符。
The compiler may give false positives, generating this warning for code where there is no behavior change.
否则编译器可能会误报,对没有任何行为更改的代码生成此警告。
The compiler may give false positives, generating this warning for code where there is no behavior change.
否则编译器可能会误报,对没有任何行为更改的代码生成此警告。
应用推荐