Is there such a thing? It is the first time I encountered a practical need for it, but I don\'t see one listed in Stroustrup. I intend to write:
// Detect wh
For a true logical XOR operation, this will work:
if(!A != !B) { // code here }
Note the ! are there to convert the values to booleans and negate them, so that two unequal positive integers (each a true) would evaluate to false.
!
true
false