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

Add support for member pointer casting #973

Open
Lancern opened this issue Oct 15, 2024 · 0 comments
Open

Add support for member pointer casting #973

Lancern opened this issue Oct 15, 2024 · 0 comments
Assignees

Comments

@Lancern
Copy link
Member

Lancern commented Oct 15, 2024

Given class types Base and Derived, assume Base is a public non-ambiguous non-virtual base class of Derived, there are 4 valid ways to cast relevant member pointers:

  • Casts on pointer to data members:
    • Implicit cast from T Base::* to T Derived::*
    • Explicit cast from T Derived::* to T Base::*
  • Casts on pointer to member functions:
    • Implicit cast from Ret (Base::*)(Args) to Ret (Derived::*)(Args)
    • Explicit cast from Ret (Derived::*)(Args) to Ret (Base::*)(Args)

This issue tracks the implementation status of these 4 cast types.

@Lancern Lancern self-assigned this Oct 15, 2024
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

1 participant