Skip to content

Commit 256896b

Browse files
committed
[temp.func.order] Explicitly specify to only add extra first argument if we don't have an explicit object argument
In [temp.func.order] paragraph 3, it is written that we need to add a new first parameter for all member functions for the purposes of template deduction. However, it only makes sense if we don't have an explicit object parameter. If we have an explicit object parameter, we shouldn't add a new (implicit) first parameter because our first parameter is explicitly written.
1 parent 6ecda0b commit 256896b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/templates.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3904,7 +3904,7 @@
39043904
is also a unique synthesized type.
39053905
\end{note}
39063906
Each function template $M$ that is a member function
3907-
is considered to have
3907+
with no explicit object parameter is considered to have
39083908
a new first parameter of type $X(M)$, described below,
39093909
inserted in its function parameter list.
39103910
If exactly one of the function templates was considered by overload resolution

0 commit comments

Comments
 (0)