Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #7263
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: size of bit field |
| Date | 2011-06-30 17:38 +1200 |
| Message-ID | <972geqFfpqU10@mid.individual.net> (permalink) |
| References | <e99d1a5c-66e2-4bb8-a4b7-6a002f4c6f8a@g16g2000yqg.googlegroups.com> |
On 06/30/11 04:37 PM, Nikolay Moskvichev wrote: > Hello All. > > size of this bit_field is 2 for gcc or borland, and 4 for msvc 2008 > and 2010. > Can you please explain me this behaviour? > > > #include<iostream> > #pragma pack(push,1) This is compiler specific, so you would be better off asking on a more specialised group. My *guess* is that the directive is ignored by msvc. -- Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
size of bit field Nikolay Moskvichev <nikolay.moskvichev@gmail.com> - 2011-06-29 21:37 -0700 Re: size of bit field Ian Collins <ian-news@hotmail.com> - 2011-06-30 17:38 +1200
csiph-web