New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lex.name] prohibits uses of predefined macro names and feature-test macros CWG 2818 #5296
Comments
I think the permission added to [version.syn] will also need something like [cpp.predefined]'s p4, that is, that a library feature-test macro is not subject of |
IIUC this issue touches the same area as #5187. |
Indeed.
I had considered this. But my conclusion was that implementations can define that so as not to fall under the standard's NDR. They probably already do that with |
It's my intent to resolve this along with #5187. |
This seems to prohibit uses of predefined macro names and library feature-test macros.
More formally, according to [intro.compliance.general],
Permission to use predefined macro names and library feature-test macros needs to be added to [cpp.predefined] and [version.syn], respectively. For full effect, amend [lex.name]p3's "otherwise" to "unless otherwise specified".
The text was updated successfully, but these errors were encountered: