Should be:
auto operator^^(auto A, auto B)
{
if(A && !B)
return A;
if(B && !A)
return B;
return nil;
}