Created on 2012-02-07.00:00:00 last changed 49 months ago
[Moved to DR at the November, 2014 meeting.]
Proposed resolution (February, 2014):
Change 220.127.116.11 [temp.func.order] paragraph 3 as follows:
...If only one of the function templates is a non-static member of some class A,
that function templateis considered to have a new first parameter inserted in its function parameter list. Given cv as the cv-qualifiers of the function template(if any), the new parameter is of type “rvalue reference to cv A” if the optional ref-qualifier of the function templateis && ,or of type “lvalue reference to cv A” otherwise. [Note: This allows a non-static member to be ordered with respect to a nonmember function and for the results to be equivalent to the ordering of two equivalent nonmembers. —end note] [Example:...
A member function with no ref-qualifier can be called for a class prvalue, as can a non-member function whose first parameter is an rvalue reference to that class type. However, 18.104.22.168 [temp.func.order] does not handle this case.
|2017-02-06 00:00:00||admin||set||status: drwp -> cd4|
|2015-05-25 00:00:00||admin||set||status: dr -> drwp|
|2015-04-13 00:00:00||admin||set||messages: + msg5410|
|2014-11-24 00:00:00||admin||set||status: ready -> dr|
|2014-03-03 00:00:00||admin||set||messages: + msg4848|
|2014-03-03 00:00:00||admin||set||status: drafting -> ready|