Login
VS2013 C++11, && последовательность
318 просмотров
Перейти к просмотру всей ветки
in Antwort anly 26.08.16 16:33, Zuletzt geändert 26.08.16 17:33 (pavel-hh)
да вроде ничего не менялось как был && short-circuit evaluation так и осталось.
вы никаких многопоточных прибамбасов не подключили? что бы типа проц не простаивал, а паралельно уже второе условие проверял?
EDIT: о, вот что еще, это прям ваш случай!
http://en.cppreference.com/w/cpp/language/oper...
Restrictions
- The operators
::
(scope resolution),.
(member access),.*
(member access through pointer to member), and?:
(ternary conditional) cannot be overloaded. - New operators such as
**
,<>
, or&|
cannot be created. - The overloads of operators
&&
and||
lose short-circuit evaluation. - The overload of operator
->
must either return a raw pointer or return an object (by reference or by value), for which operator->
is in turn overloaded. - It is not possible to change the precedence, grouping, or number of operands of operators.
Linux is like a Wigwam. No Windows! No Gates! And Apache inside.