3 ms·
Maybe other members in same struct was enforcing such packing? Such as https://godbolt.org/z/8G4v8McsP https://godbolt.org/z/8G4v8McsP You probably want static
by shultays 4y ago
Maybe other members in same struct was enforcing such packing? Such as https://godbolt.org/z/8G4v8McsP https://godbolt.org/z/8G4v8McsP
You probably want static asserts for sizes in your code if you are trying to optimize your struct paddings
- flohofwoe 4y agoCould also be that MSVC has improved in this area. I think I experimented with VS2015 (since this was my 'base line compiler' at the time).