]> gcc.gnu.org Git - gcc.git/commitdiff
improve comment
authorJason Merrill <jason@gcc.gnu.org>
Sat, 17 Feb 2001 23:38:08 +0000 (18:38 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 17 Feb 2001 23:38:08 +0000 (18:38 -0500)
From-SVN: r39806

gcc/cp/call.c

index d3e5ff39e534dfb5f0850e77c00a417ae3d1a7bc..f11929b095ef6304eea7d79fef98e75f1ae8c913 100644 (file)
@@ -5212,7 +5212,12 @@ joust (cand1, cand2, warn)
       winner = more_specialized
         (TI_TEMPLATE (cand1->template), TI_TEMPLATE (cand2->template),
          DEDUCE_ORDER,
-         /* Never do unification on the 'this' parameter.  */
+         /* Tell the deduction code how many real function arguments we saw,
+           not counting the implicit 'this' argument.
+
+           [temp.func.order]: The presence of unused ellipsis and default
+           arguments has no effect on the partial ordering of function
+           templates.  */
          TREE_VEC_LENGTH (cand1->convs)
          - DECL_NONSTATIC_MEMBER_FUNCTION_P (cand1->fn));
       if (winner)
This page took 0.070474 seconds and 5 git commands to generate.