Skip to content

Conversation

@Keith-S-Thompson
Copy link
Contributor

C deliberately supports implicit conversion from void* to object*. Using an explicit cast (for assigning the result of malloc, for example) is not considered good practice in C, though it's required in C++.

I'm not aware of any C translators that warn about such assignments.

C deliberately supports implicit conversion from void* to object*.
Using an explicit cast (for assigning the result of malloc, for
example) is not considered good practice in C, though it's required
in C++.

I'm not aware of any C translators that warn about such assignments.
@frederick-vs-ja
Copy link
Contributor

This sentence can be found in the Jan 1994 draft. I guess SG22 should see this.

@jensmaurer
Copy link
Member

Please fix the CI failure:

2025-10-23T19:33:00.7284274Z ##[error]compatibility.tex:2999:use \Cpp{} instead: This is fairly widely used in C, but C++ requires a

@jensmaurer jensmaurer added the changes requested Changes to the wording or approach have been requested and not yet applied. label Oct 23, 2025
Remove unnecessary wording.

Co-authored-by: Jan Schultke <me@eisenwave.net>
@jensmaurer jensmaurer removed the changes requested Changes to the wording or approach have been requested and not yet applied. label Oct 24, 2025
Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CWG 2025-10-24: Approved as an editorial change.

@jensmaurer jensmaurer merged commit cab90b3 into cplusplus:main Oct 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants