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: [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


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