Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build failure with libc++19 #5264

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

maron2000
Copy link
Contributor

As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail.
This PR fixes such build errors.

Credit of this PR goes to @DimitryAndric.

What issue(s) does this PR address?

Fixes #5259

@DimitryAndric
Copy link

Obviously this looks good to me, it's nice that all the builds on other systems (Windows, macOS, etc) have gone well. So at least I did not introduce any incompatibilities with other compilers!

@joncampbell123 joncampbell123 merged commit 543b841 into joncampbell123:master Nov 1, 2024
5 checks passed
@maron2000 maron2000 deleted the fix_libc++19 branch November 6, 2024 11:35
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.

clang-19: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'
3 participants