"Dmitry Timoshkov" <[EMAIL PROTECTED]> writes: > "James Hawkins" <[EMAIL PROTECTED]> wrote: > > > +#define ICOM_THIS_MULTI(impl,field,iface) impl* const > > This=(impl*)((char*)(iface) - offsetof(impl,field)) > > IMO using 'const' before the type looks more natural. Also adding 'const' > to all type conversions wouldn't hurt: > > const impl* This = (const impl*)((const char*)(iface) - offsetof(impl,field))
That means something completely different. 'const impl* This' and 'impl* const This' are not the same thing. -- Alexandre Julliard [EMAIL PROTECTED]