"Alexandre Julliard" <[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.
Right, I think that const pointer is not what James had in mind,
but a const area pointed out by a pointer.
--
Dmitry.