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

GH-37891: [C++] wip #45466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

chrisxu333
Copy link

@chrisxu333 chrisxu333 commented Feb 7, 2025

Rationale for this change

These changes facilitate the process of moving newly constructed shared_ptr without the need of adding a refcount and still support cases where a reference of a shared_ptr is passed from caller.

What changes are included in this PR?

  • Change SliceBuffer() function to take shared_ptr by value instead of const &.

Are these changes tested?

Yes.

Are there any user-facing changes?

  • The SliceBuffer() function now take the shared_ptr parameter value instead of const &.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant