The standard states that
Standard layout types are useful for communicating with code written in other programming languages.
But for interprocess communication on the same machine this is only true if the same member alignments are used, e.g. pramga pack(4)
Now lets add other machines to the mix and ignore endianess for a moment. Would pragma pack(16)
on sender and receiver allow POD's to be sent over the network without requiring any marshalling in this case?
UPDATE I use pragma pack
for simplicity. I know that each compiler has its own notation. So please do not get exited about this. I also know that its not part of the standard. I know I know . . . just answer the question or downvote. But closing the question is just ridiculous.