Skip to content

[cpp.predefined] Core language feature-test macros of future values #790

@frederick-vs-ja

Description

@frederick-vs-ja

Full name of submitter (unless configured in github; will be published with the issue): Jiang An

Reference (section label): [cpp.predefined]

Link to reflector thread (if any):

Issue description:

Some implementations can treat future features as extensions in old modes. Sometimes such a feature is denoted by a value of some feature-test macro larger than specified than [tab:cpp.predefined.ft]. I think it's better to allow larger values.

Suggested resolution:

Modify [cpp.predefined] as indicated:

(1.14) — __TIME__
[...]
?. Table 22 specifies names and least values of predefined feature-test macros. Each of these macros expands to an implementation-defined integer literal of the form yyyymmL that indicates a date and is larger than or equal to the specified least value.

Table 22 — Feature-test macros [tab:cpp.predefined.ft]

Macro name Least vValue
[...] [...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions