Consider this class:
class C3 { public: uint16_t p1; uint16_t p2; uint8_t p3; };
sizeof(C3) is 6. Is there any compiler routine to bypass alignment and force it's size to be 5? I tried to use alignas without success...
sizeof(C3)
6
5
alignas
Aucun commentaire:
Enregistrer un commentaire