-
Notifications
You must be signed in to change notification settings - Fork 140
Add support for member pointer casting #973
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
Labels
enhancement
New feature or request
Comments
bcardosolopes
pushed a commit
that referenced
this issue
Dec 2, 2024
This PR adds support for base-to-derived and derived-to-base casts on pointer-to-data-member values. Related to #973.
lanza
pushed a commit
that referenced
this issue
Mar 18, 2025
This PR adds support for base-to-derived and derived-to-base casts on pointer-to-data-member values. Related to #973.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given class types
Base
andDerived
, assumeBase
is a public non-ambiguous non-virtual base class ofDerived
, there are 4 valid ways to cast relevant member pointers:T Base::*
toT Derived::*
T Derived::*
toT Base::*
Ret (Base::*)(Args)
toRet (Derived::*)(Args)
Ret (Derived::*)(Args)
toRet (Base::*)(Args)
This issue tracks the implementation status of these 4 cast types.
The text was updated successfully, but these errors were encountered: