A demo example for switch case removal in C++