Created on 2015-06-30.00:00:00 last changed 94 months ago
Proposed resolution (February, 2016):
Add the following as a new paragraph following 11.4 [class.mem] paragraph 3:
[Note: A single name can denote several function members provided their types are sufficiently different (Clause 12 [over]). —end note]
In a member-declarator, an = immediately following the declarator is interpreted as introducing a pure-specifier if the declarator-id has function type, otherwise it is interpreted as introducing a brace-or-equal-initializer. [Example:
struct S { using T = void(); T * p = 0; // OK: brace-or-equal-initializer virtual T f = 0; // OK: pure-specifier };—end example]
[Adopted at the February, 2016 meeting.]
There does not appear to be a rule to disambiguate a pure-specifier and a brace-or-equal-initializer in a member declarator.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-02-06 00:00:00 | admin | set | status: tentatively ready -> cd4 |
2016-02-15 00:00:00 | admin | set | messages: + msg5706 |
2016-02-15 00:00:00 | admin | set | status: drafting -> tentatively ready |
2015-06-30 00:00:00 | admin | create |