Created on 2023-07-11.00:00:00 last changed 7 months ago
Proposed resolution (approved by CWG 2023-08-25):
Change in 12.2.2.1 [over.match.funcs.general] paragraph 4 as follows:
For implicit object member functions, the type of the implicit object parameter iswhere X is the class of which the function is a direct member and cv is the cv-qualification on the member function declaration.
- “lvalue reference to cv X” for functions declared without a ref-qualifier or with the & ref-qualifier
- “rvalue reference to cv X” for functions declared with the && ref-qualifier
[Accepted as a DR at the November, 2023 meeting.]
Subclause 12.2.2.1 [over.match.funcs.general] paragraph 4 specifies:
For implicit object member functions, the type of the implicit object parameter iswhere X is the class of which the function is a member and cv is the cv-qualification on the member function declaration.
- “lvalue reference to cv X” for functions declared without a ref-qualifier or with the & ref-qualifier
- “rvalue reference to cv X” for functions declared with the && ref-qualifier
Since a member of some class C is also a member of any class derived from C, this specification is unclear.
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-04-05 21:43:46 | admin | set | status: dr -> drwp |
2023-12-19 10:15:28 | admin | set | status: ready -> dr |
2023-11-10 14:27:11 | admin | set | status: tentatively ready -> ready |
2023-08-26 21:49:54 | admin | set | messages: + msg7404 |
2023-08-26 21:49:54 | admin | set | status: open -> tentatively ready |
2023-07-11 00:00:00 | admin | create |