Today, while I was digging around on the web for some information on template meta-programming I ran across some really interesting code:
bool a1 = false;
bool a2 = false;
bool a3 = true;
std::cout << ( a1 ? "true" : a2 ? "a2=true" : a3 ? "a3=true" : "all=false" ) << std::endl;
