Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | danielgutson@googlemail.com |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: proposal: new bitfield value to ensure structure packing |
| Date | 2013-11-26 17:19 -0800 |
| Organization | unknown |
| Message-ID | <037524e2-ab08-4744-82ed-c7179f42ba8f@googlegroups.com> (permalink) |
| References | <d2b978c2-585a-47e2-84a9-f345f7751d32@googlegroups.com> <e85511f5-5edb-4820-bf5d-e0af755c4f1e@googlegroups.com> |
On Monday, November 25, 2013 1:44:23 PM UTC-3, 嘱 Tiib wrote:
>
A correction to my previous "rule of thumb" derived from the question
of this poster:
given
struct S
{
...
char: -1;
T t;
};
It will be valid if
offsetof(S, t) % sizeof(t) == 0
Daniel.
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar
proposal: new bitfield value to ensure structure packing danielgutson@googlemail.com - 2013-11-22 09:04 -0600
Re: proposal: new bitfield value to ensure structure packing ootiib@hot.ee - 2013-11-25 08:44 -0800
Re: proposal: new bitfield value to ensure structure packing James Kuyper <jameskuyper@verizon.net> - 2013-11-25 16:09 -0600
Re: proposal: new bitfield value to ensure structure packing danielgutson@googlemail.com - 2013-11-26 17:19 -0800
Re: proposal: new bitfield value to ensure structure packing danielgutson@googlemail.com - 2013-11-26 17:19 -0800
csiph-web