Skip to content

Conversation

frederick-vs-ja
Copy link
Contributor

The fourth parameter of codecvt::out and codecvt::in are const C*&, but Effects use C* variables, which makes the call ill-formed.

The intent seems sufficient clear and we should probably use const C* variables in these places.

Fixes #8256.

The fourth parameter of `codecvt::out` and `codecvt::in` are
`const C*&`, but _Effects_ use `C*` variables, which makes the call
ill-formed.

The intent seems sufficient clear and we should probably use `const C*`
variables in these places.
@frederick-vs-ja frederick-vs-ja changed the title [filebuf] Add missing const to pointer variables [filebuf.virtuals] Add missing const to pointer variables] Add missing const to pointer variables Sep 29, 2025
@frederick-vs-ja frederick-vs-ja changed the title [filebuf.virtuals] Add missing const to pointer variables] Add missing const to pointer variables [filebuf.virtuals] Add missing const to pointer variables Sep 29, 2025
@jensmaurer
Copy link
Member

@jwakely , could you have a look, please? Looks reasonable to me, at least...

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.

[filebuf.virtuals] Missing const-qualifiers in specification of overflow/underflow.
2 participants