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

Added overload to getAndDetach that accepts a constant reference. #1512

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

Dimi1010
Copy link
Collaborator

This PR addresses the issue of values being unable to be detached from an iterator temporary.

Example code: pVector.getAndDetach(pVector.begin())

…llow usage of temporaries to point to members. (such as immediately using the result of begin()).
@Dimi1010 Dimi1010 requested a review from seladb as a code owner July 26, 2024 19:53
@tigercosmos
Copy link
Collaborator

tigercosmos commented Jul 27, 2024

I wonder where this new function will be called.

@Dimi1010
Copy link
Collaborator Author

I wonder where this new function will be called.

I wanted to use the example code in #1507's unit tests for Pointer Vector. Adding it as a separate PR as it was not strictly related.

@tigercosmos tigercosmos merged commit 08615ee into seladb:dev Jul 30, 2024
38 checks passed
@Dimi1010 Dimi1010 deleted the fix/pv-detach-iterator branch July 30, 2024 07:54
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.

3 participants