Add support for language='c++'.
The implementation is a bit odd, but I was trying to match the existing templates.