Created on 2023-10-19.00:00:00 last changed 4 days ago
CWG 2024-04-19
This issue is not a DR.
CWG 2023-12-01
CWG seeks approval from EWG for the design direction. See paper issue 1698.
EWG 2024-03-18
EWG approves.
Proposed resolution (approved by CWG 2023-12-01):
Change in 7.7 [expr.const] bullet 5.14 as follows:
- ...
- a conversion from a prvalue P of type “pointer to cv void” to a pointer-to-object type T unless P is a null pointer value or points to an object whose type is similar to T;
- ...
[Accepted at the June, 2024 meeting.]
Subclause 7.7 [expr.const] bullet 5.14 was amended by P2738R1 to support certain casts from void* to object pointer types. The bullet specifies:
- ...
- a conversion from a prvalue P of type “pointer to cv void” to a pointer-to-object type T unless P points to an object whose type is similar to T;
- ...
This wording does not, but should, support null pointer values. The implementation burden is negligible.
History | |||
---|---|---|---|
Date | User | Action | Args |
2024-12-17 09:54:02 | admin | set | status: accepted -> wp |
2024-07-20 13:52:34 | admin | set | status: ready -> accepted |
2024-06-26 19:00:47 | admin | set | status: tentatively ready -> ready |
2024-04-19 21:17:21 | admin | set | messages: + msg7668 |
2024-04-19 21:17:21 | admin | set | status: review -> tentatively ready |
2023-12-02 13:35:39 | admin | set | messages: + msg7534 |
2023-12-02 13:35:39 | admin | set | messages: + msg7533 |
2023-12-02 13:35:39 | admin | set | status: open -> review |
2023-10-19 00:00:00 | admin | create |