Translations:Demystifying C++ - Classes/12/en
Jump to navigation
Jump to search
... };
|- !Derived-to-Base Cast
|
static_cast<Base2*>(derived)
|
&derived->base2
|- !Static Base-To-Derived Cast
|
static_cast<Derived*>(base2)
|
(Derived*)((char*)base2 - offsetof(Derived, base2))
|}