Skip to content
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

Restrict contexts from which injected declarations may be produced #112

Open
katzdm opened this issue Nov 8, 2024 · 0 comments
Open

Restrict contexts from which injected declarations may be produced #112

katzdm opened this issue Nov 8, 2024 · 0 comments
Labels
p2996-conformance Implemented behavior unintentionally diverges from P2996

Comments

@katzdm
Copy link
Collaborator

katzdm commented Nov 8, 2024

P2996 stipulates certain circumstances under which an injected declaration (i.e., define_aggregate) may be produced.
https://brevzin.github.io/cpp_proposals/2996_reflection/p2996r8.html#pnum_112

These restrictions should be implemented and enforced. Probably also this will involve encoding the notion of "plainly constant-evaluated expression".

@katzdm katzdm added the p2996-conformance Implemented behavior unintentionally diverges from P2996 label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2996-conformance Implemented behavior unintentionally diverges from P2996
Projects
None yet
Development

No branches or pull requests

1 participant