
Probe and Modify Your Types’ Alignment Programmatically
he alignment requirement of your target platform is usually transparent. However, when you need to send or receive objects via a network connection, serialize objects, design heterogeneous containers, or construct different types of objects on a pre-determined memory address, there’s no escape from poking into your compiler’s alignment scheme. With