This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix building with latest libc++
ClosedPublic

Authored by mstorsjo on Aug 10 2023, 1:19 AM.

Details

Summary

Since https://reviews.llvm.org/D157058 in libc++,
the base template for char_traits has been removed - it is only
provided for char, wchar_t, char8_t, char16_t and char32_t.
(Thus, to use basic_string with a type other than those, we'd need
to supply suitable traits ourselves.)

For this particular use, a vector works just as well as basic_string.

Diff Detail