2 ms·
I don't think that's right. It seems far-fetched that the compiler would know that accessing key_data->label() implies that k_d->has_value() == true I believe
by khazhoux 5y ago
I don't think that's right. It seems far-fetched that the compiler would know that accessing key_data->label() implies that k_d->has_value() == true
I believe the explanation is:
A && B : compiler will evaluate B only if A==true
A & B : compiler will evaluate both A (safe) and B (unsafe), then perform bitwise operation
- dataflow 5y agoNo, it's not far-fetched, this is a pretty well-known optimization. https://blog.regehr.org/archives/970 https://blog.regehr.org/archives/970