A
pointer to member of derived class
D
can be cast to
a pointer to member of base class
B
(with certain restrictions on
cv qualifiers)
as long as
B contains the original member,
or is a base or derived class of the class
containing the original member;
otherwise the behavior is undefined
.