Page properties | ||
---|---|---|
| ||
I am not convinced this is entirely sensible as a rule. The biggest issue is that this is unenforceable in a general case for C++. Consider uses of
This code is valid, and somewhat reasonable, but disallowed. There's no way to statically determine whether those side effects are being relied upon or not. |
Some expressions involve operands that are unevaluated. According to the C++ Standard, [expr], paragraph 8 [ISO/IEC 14882-2014]:
...