There are exactly zero padding bits in an array of bytes (unsigned char), by
definition.
That's exactly what I am proposing: that the std::bit_cast function, however
it is implemented, write zero for padding bits of its input. That includes
entire empty structs, if it is all padding.
> Ergo, if you want something that clears padding in-place, that requires a
> std::clear_padding function, unless you treat std::bit_cast magically and
> give it custom ABI.
I don't see why.