Title
Value category of expressions denoting non-static member functions
Status
drafting
Section
7.6.1.5 [expr.ref]
Submitter
Andrey Erokhin

Created on 2020-07-04.00:00:00 last changed 6 months ago

Messages

Date: 2020-08-15.00:00:00

Notes from the August, 2020 teleconference:

CWG preferred that the unbound case (i.e., &X::f) should be an lvalue, while the bound case should be a prvalue.

Date: 2020-07-04.00:00:00

Expressions denoting non-static member functions are currently classified as prvalues (7.5.4.3 [expr.prim.id.qual] paragraph 2; 7.6.1.5 [expr.ref] bullet 6.3.2; and 7.6.4 [expr.mptr.oper] paragraph 6). It would simplify the specification if such expressions were categorized as lvalues. (See also this pull request.)

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6234
2020-07-04 00:00:00admincreate