This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using offsetof with g++


Michael Matz writes:
 > Hi,
 > 
 > On 6 Nov 2003, Gabriel Dos Reis wrote:
 > 
 > > The issue is whether or that initialization could be provided in a
 > > non-"compromising" way -- such ways (like generalized initializers) are
 > > already subject of active works.
 > 
 > I see.  Although it remains to be seen if it's really worthwhile to add a
 > new language construct for something which can already be expressed quite
 > conveniently, just to work around this specific issue which also could be
 > fixed by relaxing the constraints on offsetof().

I don't mind migrating my code to some new construct if it means
I don't have to go through what I'm going through now again.
OTOH, if offsetof continues to work for well-defined and well-specified
cases beyond the trivial PODs, that's fine too.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]