Skip to content

fix basic_string warnings#16261

Merged
elad335 merged 3 commits into
RPCS3:masterfrom
oltolm:libc++19
Nov 11, 2024
Merged

fix basic_string warnings#16261
elad335 merged 3 commits into
RPCS3:masterfrom
oltolm:libc++19

Conversation

@oltolm
Copy link
Copy Markdown
Contributor

@oltolm oltolm commented Oct 28, 2024

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.

@oltolm oltolm marked this pull request as draft October 28, 2024 21:03
@ghost
Copy link
Copy Markdown

ghost commented Oct 28, 2024

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

@elad335
Copy link
Copy Markdown
Contributor

elad335 commented Oct 29, 2024

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

@oltolm oltolm marked this pull request as ready for review October 30, 2024 22:35
Comment thread rpcs3/rpcs3qt/debugger_frame.cpp Outdated
Comment thread Utilities/bin_patch.h Outdated
Comment thread rpcs3/Emu/Cell/lv2/sys_spu.cpp Outdated
Comment thread rpcs3/Crypto/unedat.cpp Outdated
Comment thread rpcs3/Emu/Cell/Modules/sceNpTrophy.cpp Outdated
Comment thread rpcs3/Emu/Cell/SPUCommonRecompiler.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/PPUModule.cpp Outdated
Comment thread rpcs3/Emu/Cell/SPUCommonRecompiler.cpp Outdated
Comment thread rpcs3/Emu/Cell/SPUCommonRecompiler.cpp Outdated
@elad335 elad335 merged commit 2b0f786 into RPCS3:master Nov 11, 2024
@oltolm oltolm deleted the libc++19 branch November 11, 2024 20:18
Comment thread Utilities/File.cpp
}

// Remove offsets data
id.data_view.remove_suffix(sizeof(u64) * offset_count);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lmao, I think this fixed a bug. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fails to build with libc++ 19

3 participants