This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [c++, cxx-reflection] Initial thoughts on type reflection.
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: <gcc at gcc dot gnu dot org>
- Date: Wed, 12 Mar 2003 01:42:45 +0000 (GMT)
- Subject: Re: [c++, cxx-reflection] Initial thoughts on type reflection.
On 11 Mar 2003, Gabriel Dos Reis wrote:
> is not unary. Even though offsetof is defined to be a macro, nothing
> prevents it to expand to
>
> __builtin_offsetof (POD, name)
And expanding like that would be good (for both C and C++) to avoid
complications needed to make the existing expansion of offsetof into an
integer constant expression.
--
Joseph S. Myers
jsm28 at cam dot ac dot uk