RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.68k stars 1.93k forks source link

fix basic_string warnings #16261

Closed oltolm closed 2 weeks ago

oltolm commented 1 month ago

This is my attempt to fix the std::basic_string errors when compiling with libc++19. I wasn't sure in some places whether the fix is correct which is why it is a draft. At least it build.

Fixes #16259.

Nekotekina commented 1 month ago

char32_t is not allowed to contain any 32-bit value, it's only for Unicode codepoints.

elad335 commented 1 month ago

Replace std::basic_string with std::vector, std::basic_string_view with std::span, avoid changing value types.