Skip to content

DR: 18.11.4.7: get_accessible_* and the name used for the access #79

Description

@hubert-reinterpretcast

The accessibility of f below from C depends upon the name used to name A. It is unclear what the application of get_accessible_member_functions upon the meta-object types produced in g() and h() h2() would generate.

struct A { static int f(); };
class B : A {};
class C : B {
  static auto *g() { return static_cast<reflexpr(::A) *>(0); }
  static auto *h() { return static_cast<reflexpr(A) *>(0); }
  static auto *h2() { return static_cast<
      get_class_t<get_element_t<0, get_base_classes_t<reflexpr(C)>>> *>(0); }
};

Activity

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

      Issue actions