Re:Why introduce `std::launder` rather than have the compile...
by gpderetta on Monday January 24, 2022 @05:14AM
(#30055616)
> StandardLayout with the correct alignment really does express exactly what we want here, I'm not sure
Surely if you are unsure the default position should be to go to the obvious and simple solution instead of overengineering it? But I might be completely misunderstanding your point.
[If the struct is not correctly aligned, I would either memcpy or apply any required compiler pragmas, while cursing the protocol designer]
Surely if you are unsure the default position should be to go to the obvious and simple solution instead of overengineering it? But I might be completely misunderstanding your point.
[If the struct is not correctly aligned, I would either memcpy or apply any required compiler pragmas, while cursing the protocol designer]