C++ example of bitwise option conversion.