Andrew Talbot wrote:
So, in case anyone is still awake and interested:
static const REFIID tid_ids[];
is equivalent to
static const GUID *const const tid_ids[]; (Note the erroneous double
const.)
or static GUID const *const const tid_ids[];
as I would prefer to put it. So, to conclude, you don't want the extra const, and it may not have been the const you thought it was, either. :)
Whoops! Hopefully, you had all fallen asleep before reading that bit, but because we are talking about a #define, not a typedef, the declaration would, in fact, be equivalent to:
static const const GUID *const tid_ids[];
(I checked it with gcc -E.) But it's still a const too far.