Help for those foolish enough to want to generate C++ code.