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 with libc++ 19 #748

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbgarga
Copy link

@rbgarga rbgarga commented Nov 5, 2024

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 causes emulators/open-vm-tools to fail to compile with clang 19 and
libc++ 19.

This can be fixed by using the standard type std::u16string for UTF-16
strings, instead of (effectively) std::basic_string<uint16_t>.

[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals

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 causes emulators/open-vm-tools to fail to compile with clang 19 and
libc++ 19.

This can be fixed by using the standard type std::u16string for UTF-16
strings, instead of (effectively) std::basic_string<uint16_t>.

[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
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.

1 participant