>>108615923
i'm not talking about anything else, why are you starting off from a stance of assuming i'm speaking to something different?
alignment and padding are inherently left up to the implementation. your assumption on how POD works is faulty.
#include <stdio.h>
struct some_structure { int a; char b; };
int main(int argc, char **argv)
{
printf("%llu\n", sizeof(struct some_structure));
return 0;
}
a single flag (-fpack-struct for gcc/clang) introduces layout incompatibility even in the most trivial case. in real code, structures can get mangled far more severely than this trivial case. passing around POD is only usable for when the IPC pipeline is between identical binaries.