On 01/26/2012 05:15 PM, Dodji Seketeli wrote:
Jason Merrill<ja...@redhat.com> writes:
Hmm...what if rather than trying to ignore levels when comparing, we
make it so the sibling list always has level 1?
I am not sure to understand how you'd do that. You mean that instead of
pointing to the actual vector of innermost template parms,
TEMPLATE_PARM_SIBLINGS would instead point to a vector that is a copy of
the innermost template parms into which we'd have substituted and index
of level 1 for the index of each parm?
Yes, that's what I was thinking. Only if they aren't already level 1,
of course.
BTW, let's avoid calling a function named *_real directly from client
code.
Ah, oops sorry. I thought it would be OK as cp-tree.h already has a few
spots of public entry points "overloaded" using that _real suffix. What
suffix would be best?
Something that expresses the actual nature of the extra parameter. The
problem with _real functions is that often you want to add another
parameter later, and then what do you call it? :)
Jason