Skip to content

CXX-3101 Remove workarounds for core::string_view #1268

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

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

eramongodb
Copy link
Collaborator

@eramongodb eramongodb commented Nov 12, 2024

Resolves CXX-3101. Verified by this patch this patch.

Following #1257, workarounds that were required for mnmlstc/core string_view compatibility are no longer necessary.

These former workarounds primarily consist of the lack of equality comparison operators against string literals (fixed in mnmlstc/core@776eb3e but never released) and broken hash algorithm (fixed in mnmlstc/core@42a34a9 but never released). The changes in this PR address workarounds for the equality comparison operators only. We've opted to completely avoid hashing of string_view up to this point (e.g. see #935 (comment)). Refactoring existing workarounds to use string_view instead is not as straightforward (due to lifetime/dangling concerns) and thus deferred.

@eramongodb eramongodb requested a review from kevinAlbs November 12, 2024 19:37
@eramongodb eramongodb self-assigned this Nov 12, 2024
@eramongodb eramongodb merged commit 30cf5e5 into mongodb:master Nov 12, 2024
15 of 19 checks passed
@eramongodb eramongodb deleted the cxx-3101 branch November 12, 2024 20:18
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.

2 participants