Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 25 Nov 2013 16:10:02 -0600 Return-Path: Sender: std-cpp-request@vandevoorde.com Approved: james.dennett@gmail.com Message-ID: <529384B5.7090202@verizon.net> Newsgroups: comp.std.c++ From: James Kuyper Subject: Re: proposal: new bitfield value to ensure structure packing Organization: Self References: Content-Type: text/plain; charset=ISO-8859-1 X-Original-Date: Mon, 25 Nov 2013 12:11:17 -0500 X-Submission-Address: std-cpp-submit@vandevoorde.com To: undisclosed-recipients:; Date: Mon, 25 Nov 2013 16:09:44 CST Lines: 19 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-3sqEI4tjNWGCwtXrKhdWZPnu+DVAw7TWHrpoAIh+2ZBI9LyQrNqW972/yuWWzhaUszk9KZHhbEkC9k9!stgCFSJrs/+gbkdobfJGzmnn6Gj2tGDF8hY0+XdozVy54B8f0AdRrg== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1833 Xref: csiph.com comp.std.c++:695 On 11/25/2013 11:44 AM, ootiib@hot.ee wrote: ... > If you want to remove alignment requirements of 'A::i' then > why not simply: > > struct A { char c; int i:-1; }; > > ? That makes it impossible to make 'i' a bit-field. -- [ 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 ]