2 ms·
... } __attribute__((packed)); I would encourage the placement of attributes before the objects they apply to. This has been allowed by GCC since the standar
by kevin_thibedeau 3y ago
...
} __attribute__((packed));
I would encourage the placement of attributes before the objects they apply to. This has been allowed by GCC since the standardized attribute syntax was added to C++. It is a more natural fit for code that will eventually be upgraded to C23 attribute syntax in the future and is more prominently visible to a reader. It also avoids the sometimes awkward GCC rules for postfix attributes.