Pointer-to-Member Conversions

C++Pointer-to-member conversion can occur when pointers to members are initialized, assigned, or compared. Note that pointer to a member is not the same as a pointer to an object or a pointer to a function.

A constant expression that evaluates to zero can be converted to the null pointer to a member.

A pointer to a member of a base class can be converted to a pointer to a member of a derived class if the following conditions are true:

Related References

IBM Copyright 2003