Example:
We found this is some vendor written code and we're trying to figure out why they'd do this.
bool tmp = false;
if (somecase)
tmp = true;
if (someOtherCase)
tmp |= true;
question from:https://stackoverflow.com/questions/9909873/why-would-one-use-the-operator-on-a-boolean-value-in-c