看看这段代码片段
struct S{ int i; int j;}; int main() { assert(S().i == S().j) // is it guaranteed ? }
为什么?
c++ temporary
c++ ×1
temporary ×1