Relative Content

Tag Archive for c++language-lawyer

Are pointers of different types layout-compatible?

I’m trying to determine if two structs are layout-compatible. In my case, it’s not clear to me if pointers of different types are considered compatible. In the following example, are structs t1 and t2 layout-compatible?