C ++ 11 introduced the concept of a standardized attribute syntax. I could not find a list of all supported attributes. Is there an alternative to C ++ 11 for __attribute__((packed)) ?
eg.
struct __attribute__((packed)) Pack { uint8_t field1; uint8_t field2; };
c ++ gcc c ++ 11 clang c ++ 14
Crossfire
source share