Closed
Description
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::*
toT Derived::*
- Explicit cast from
T Derived::*
toT Base::*
- Implicit cast from
- Casts on pointer to member functions:
- Implicit cast from
Ret (Base::*)(Args)
toRet (Derived::*)(Args)
- Explicit cast from
Ret (Derived::*)(Args)
toRet (Base::*)(Args)
- Implicit cast from
This issue tracks the implementation status of these 4 cast types.