What does #pragma pack(0) do
C / C++ / MFC
21
Posts
7
Posters
0
Views
1
Watching
-
The msdn says #pragma pack(n) will change current alignment value to n. But if n is zero, what will do?
According to the C++ standard it can do whatever it likes. It's a way of implementors switching on non-standard features of the compiler. I think Griff and the others have told you enough about what it does on VC++ though! Cheers, Ash PS: Except this is the one thread Griff hasn't posted in. Let's try "Chris and the others..." instead!