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

10.2p12 wrong example. #1343

Closed
introom opened this issue Jan 9, 2017 · 2 comments
Closed

10.2p12 wrong example. #1343

introom opened this issue Jan 9, 2017 · 2 comments

Comments

@introom
Copy link

introom commented Jan 9, 2017

It says:
int B1::* mpB1 = &D::i; // Unambiguous
int D::* mpD = &D::i; // Ambiguous conversion

Which is wrong.

@jwakely
Copy link
Member

jwakely commented Jan 9, 2017

Yes, both are ambiguous. @jensmaurer or @zygoloid what is this meant to say?

@jensmaurer
Copy link
Member

As discussed on the core reflector starting at http://lists.isocpp.org/core/2017/01/1441.php, the example is correct: There is only one B1::i member, and that is unambiguously found by the algorithm described in this section.

See also CWG 39 / N1626.

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

No branches or pull requests

3 participants