|
|
#4 |
|
Moderator
|
Цитата:
Насколько я помню даже в стандарте C++ не описано поведение компилятора в данном случае....
:Цитата:
5.14 Logical AND operator [expr.log.and]
1 logical-and-expression: inclusive-or-expression logical-and-expression && inclusive-or-expression The && operator groups left-to-right. The operands are both implic- itly converted to type bool (_conv_). The result is true if both operands are true and false otherwise. Unlike &, && guarantees left- to-right evaluation: the second operand is not evaluated if the first operand is false. 2 The result is a bool. All side effects of the first expression except for destruction of temporaries (_class.temporary_) happen before the second expression is evaluated. |
|
|
| Теги |
| x++ |
|
|
Похожие темы
|
||||
| Тема | Ответов | |||
| Параллельные операции в маршрутах | 10 | |||
| Как для ГК операции в LedgerTrans найти соответствующую операцию в VendTrans? | 20 | |||
| ОС: Опреации & модели учета | 2 | |||
|