From -1756871686720516188
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,84d8f03c42dfd615
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1993-03-06 01:19:44 PST
Newsgroups: comp.std.c++
Path: sparky!uunet!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!wupost!cs.uiuc.edu!sparc0b!pjl
From: pjl@cs.uiuc.edu (Paul Lucas)
Subject: Re: Representation of data members in memory
Message-ID: <C3G2p2.H91@cs.uiuc.edu>
Sender: news@cs.uiuc.edu
Organization: University of Illinois at Urbana-Champaign
References: <1n7v3d$mks@info2.rus.uni-stuttgart.de>
Date: Sat, 6 Mar 1993 01:55:49 GMT
Lines: 20

In <1n7v3d$mks@info2.rus.uni-stuttgart.de> seibold@nvdv.e-technik.uni-stuttgart.dbp.de (Wolfram Seibold (Se)) writes:

>Hi,

>I have to transmit different c++ class-instantiations over stream-channels.
>The classes are derived from a base-class containing a type-identifier
>to determine the size of the class-instantiation. This type-identifier
>must be transmitted first to ensure correct reception of the transmitted
>data.

>Therefore my question:

>Does the c++ standard determine how data members are stored in memory??

	Nothing even close.  Transmit your member in the order you 
	want them transmitted.
-- 
	- Paul J. Lucas
	  AT&T Bell Laboratories
	  Naperville, IL


