Language level and your Standard C++ compliance objectives
Code that compiles without errors in pre-z/OS® C++ V1R2 compilers might produce warnings or error messages in the z/OS V2R2 XL C++ compiler. This could be due either to changes in the language or to differences in the compiler behavior. Language elements that may affect your code are shown in Changes that affect Standard C++ compliance of language features.
Table 1 shows the Standard C++
migration objectives and the recommended approach for each.
Note: Full
conformance can be achieved gradually by migrating to selected individual
language features in phases.
Is code compliant with 1998 ISO Standard C++? | Compliance objective | Action |
---|---|---|
Yes (ported or new). | Migrate to the 2003 Standard C++. | No action required. |
Remain compliant with 1998 Standard C++. | Use one of the following compiler
options and suboptions:
Notes:
|
|
No | Use Standard C++ language features, even if code must be modified. | Use the following compiler options
and suboptions to aid the migration process:
|
Avoid modifying code and ignore Standard C++ language features. | Use LANGLVL(COMPAT92) to tolerate language incompatibilities. |