C++ Migration Guide

Keywords in Compatibility Mode

By default, some of the new C++ keywords are recognized as keywords in compatibility mode, but you can turn off most of these keywords with compiler options, as shown in the following table. Changing the source code to avoid the keywords is preferable to using the compiler options.

Table 2-1 Keywords in Compatibility Mode

Keyword 

Compiler option to disable 

explicit

-features=no%explicit

export

-features=no%export

mutable

-features=no%mutable

typename

cannot disable

Keyword typename cannot be disabled. The additional new C++ keywords, described in Table 3-1, are disabled by default in compatibility mode.