[diff.expr] Include conversions involving pointers to cv void in the changes#8357
Conversation
|
While I've approved the change, I'm asking myself whether the "cv" matter for this example-style highlight of a C difference is actually important. (We don't say that the pointer-to-object type must be similarly cv-qualfiied.) |
|
I was under the impression that we try to describe differences from C exhaustively in [diff]. Please correct me if I've misunderstood the point of [diff].
"Object type" includes cv-qualified types, so saying that converting from |
|
CWG 2025-10-24: Approved direction. |
This fixes two issues:
Conversions from
const void*toconst int*are implicit in C as well, but they are missing from the C annex. I don't think this needs a CWG issue.The notation referring to
void*in this area is weird. Example of better notation:draft/source/expressions.tex
Lines 1049 to 1053 in ca77cdb
Basically, we don't use "code spellings" in code wording, but prefer the "quoted" type notation.