Skip to content

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

@hubert-reinterpretcast

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); }
};

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