What is the simplest way to do a three-way exclusive OR?
In other words, I have three values, and I want a statement that evaluates to true IFF only one of
bool result = (a?1:0)+(b?1:0)+(c?1:0) == 1;