Skip to content

10.2p12 wrong example. #1343

Closed
Closed
@introom

Description

@introom

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

Which is wrong.

Activity

jwakely

jwakely commented on Jan 9, 2017

@jwakely
Member

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

jensmaurer

jensmaurer commented on Jan 9, 2017

@jensmaurer
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

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

        Participants

        @introom@jwakely@jensmaurer

        Issue actions

          10.2p12 wrong example. · Issue #1343 · cplusplus/draft