Title
Overloading ambiguity binding reference to function
Status
c++11
Section
12.2.4.3 [over.ics.rank]
Submitter
Doug Gregor

Created on 2011-01-25.00:00:00 last changed 130 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-01-25.00:00:00

Currently overload resolution does not distinguish between binding an lvalue reference to a function lvalue and an rvalue reference to a function lvalue. The former should be preferred.

In a related point, the current wording of 12.2.4.2.5 [over.ics.ref] paragraph 3 forbids binding an rvalue reference to an lvalue; this should be changed to allow binding an rvalue reference to a function lvalue.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3376
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-01-25 00:00:00admincreate