Invalid derived-to-base conversion for pointers to members

suggest change

When static_cast is used to convert T D::* to T B::*, the member must belong to B, or to a base or derived class of B. Otherwise the behavior is undefined. The cast is ill-formed unless B is a base of D. See Derived to base conversion for pointers to members

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents