Synopsis: | Do not assume that the operands in an expression are evaluated in a definite order, unless the order is specified in the language |
Language: | C++ |
Severity Level: | 1 |
Category: | Portability |
Description: |
If a value is modified twice in the same expression, the result of the expression is undefined except when the order of evaluation is guaranteed for the operators that are used. It is allowed to use knowledge about the evaluation order of boolean expressions since this is specified in the C++ language definition. |