OSDN Git Service

improve comment
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Feb 2001 23:38:08 +0000 (23:38 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Feb 2001 23:38:08 +0000 (23:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39806 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/call.c

index d3e5ff3..f11929b 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)