Re:My favourite C++ footgun
by barrkel on Wednesday June 23, 2021 @05:32AM
(#27602537)
If it was undefined, then anything could happen (nasal demons), but that would be silly: you wouldn't be able to safely call functions with multiple side-effecting arguments at all.
Unspecified means that you can't rely on the order of evaluation. "Anything" may not happen; the compiler controls the sequencing.
Unspecified means that you can't rely on the order of evaluation. "Anything" may not happen; the compiler controls the sequencing.