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

[conv.qual]/1 Example became incorrect after CWG2051 resolution #2940

Closed
languagelawyer opened this issue Jun 24, 2019 · 0 comments · Fixed by #2942
Closed

[conv.qual]/1 Example became incorrect after CWG2051 resolution #2940

languagelawyer opened this issue Jun 24, 2019 · 0 comments · Fixed by #2942
Assignees

Comments

@languagelawyer
Copy link
Contributor

The resolution of CWG2051, applied in 573152d, changed the condition on n in the definition of cv-decomposition for type T from n > 0 to n ≥ 0, but the example was not updated. It says that

The type denoted by the type-id const int ** has two cv-decompositions, taking U as “int” and as “pointer to const int”.

However, since n in a cv-decomposition now can be 0, it is possible to take U as “pointer to pointer to const int” and this is the third cv-decomposition for const int **.

The issue was spotted in https://stackoverflow.com/q/56733770/9585016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants