| Syntax: | Default: |
| lang(trailingEnumCommas[,
yes]) lang(trailingEnumCommas, no) |
lang(trailingEnumCommas[, yes]) |
This option controls whether trailing commas are allowed in enum declarations.
By default, VisualAge C++ allows one or more trailing commas at the end of the enumerator list. This is an extension to the C++ standard, and provides compatibility with Microsoft Visual C++. The following enum declaration uses this extension:
enum grain { wheat, barley, rye,, };
Set trailingEnumCommas to no for compliance with standard C++ or with the ANSI language level supported by previous versions of VisualAge C++ and predecessor products.
![]()
Incremental C++ Builds
Configuration Files
![]()
Language Options for C++
Build Options for Compliance With the C++
Standard
Build Options for Compatibility with Old
C++ Compilers
