Article View: comp.std.c++
Article #338Order of fields within one section
From: Miron Cuperman
Date: Wed, 15 Aug 1990 19:32
Date: Wed, 15 Aug 1990 19:32
16 lines
840 bytes
840 bytes
Is the order of fields within a section preserved?
For example:
class C
{
private:
int size;
float a[0];
}
Is 'a' guaranteed to be after size so I can do
C *C1=malloc(sizeof(C)+n*sizeof(float));
If that is permissible, is it possible to use 'new' to allocate
an arbitrarily sized object?
--
By me: Miron Cuperman <miron@cs.sfu.ca>
Technical Details
Message-ID:
<1083@fornax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!fornax!mironShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!fornax!miron From: miron@fornax.UUCP (Miron Cuperman) Newsgroups: comp.std.c++ Subject: Order of fields within one section Keywords: fields, sections Message-ID: <1083@fornax.UUCP> Date: 15 Aug 90 19:32:54 GMT Distribution: comp Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 16