This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help understanding overloaded templates
- From: "Rob Quill" <rob dot quill at gmail dot com>
- To: "GCC Development" <gcc at gcc dot gnu dot org>
- Date: Fri, 16 Nov 2007 03:21:22 +0000
- Subject: Help understanding overloaded templates
Hi,
I was wondering if anyone could help me make sense of the
more_specialized_fn() function in pt.c (line 13281).
Specifically, I am trying to understand what each of the are:
tree decl1 = DECL_TEMPLATE_RESULT (pat1);
tree targs1 = make_tree_vec (DECL_NTPARMS (pat1));
tree tparms1 = DECL_INNERMOST_TEMPLATE_PARMS (pat1);
tree args1 = TYPE_ARG_TYPES (TREE_TYPE (decl1));
and how the function is supposed to deal with variadic functions in
terms of these. That is to say, if a function is variadic, how is that
represented in these data structures?
Any help is much appreciated.
Thanks.
Rob