Yes, this should solve the alignment problem. However, there is no need to create an fake_arrayarray. One member of the type is enough T.
This is actually a fairly widely used trick to force alignment of a specific array.
As a pedantic side: anonymous unions exist only in C ++, but not in C.
source
share