From 2943625308956097000
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,28671cb074853115
X-Google-Attributes: gidf78e5,public
From: Jean-Louis Leroy <100611.1330@compuserve.com>
Subject: Re: offsetof macro, can it be used in non-trivial classes?
Date: 1996/12/23
Message-ID: <VA.0000000f.000b8656@enterprise>#1/1
X-Deja-AN: 205628659
references: <01bbead3$6fbf55f0$c07797cd@hacknowledge>
x-original-date: Sat, 21 Dec 1996 17:26:28 +0100
content-type: text/plain; charset=iso-8859-1
organization: Starfleet
x-auth: PGPMoose V1.1 PGP comp.std.c++
reply-to: 100611.1330@compuserve.com
newsgroups: comp.std.c++
originator: austern@isolde.mti.sgi.com


<< How reliable is the offsetof macro when used on a complex class under MI? >>

As the others say, it's a bad idea. In most situations, pointers to data members 
will do the job better.

Jean-Louis
http://ourworld.compuserve.com/homepages/jl_leroy/
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]



