Is a static_cast from a base to derived class well-defined when both classes have the same layout?
I would like to create C++ bindings for a C API. Would the following be undefined behavior?
I would like to create C++ bindings for a C API. Would the following be undefined behavior?