Interporating with C embedded struct (“inheritance”) in C++
I’m working on a C++ program depends on a C library that uses the “struct embedding” trick to simulate inheritance (of data storage, not behaviour), similar to the Parent
and Child
structs in the example below.
Interporating with C struct embedded (“inheritance”) in C++
I’m working on a C++ program depends on a library that uses the “struct embedding” trick to simulate inheritance (of data storage, not behaviour), similar to the Parent
and Child
structs in the example below.