tl;dr: Is there a non-short circuit logical AND in C++ (similar to &&)?
I\'ve got 2 functions that I want to call, and use the return values to figure out th
The & operator performs logical "and" operation for bool operands and is not short circuited.
It's not a sequence point. You cannot rely on the order of evaluation of the operands. However, it's guaranteed that both operands are evaluated.
I do not recommend doing this. Using temporary variables is a better solution. Don't sacrifice readability for "clever code".