You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-37891: [C++] Pass shared_ptr<DataType> by value in SliceBuffer-related constructors (#45466)
### 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`-related constructor to take `shared_ptr` by value instead of `const &`.
- Change `SliceBufferSafe`-related constructor to take `shared_ptr` by value instead of `const &`.
- Change `SliceMutableBufferSafe` -related constructors to take `shared_ptr` by value instead of `const &`.
### Are these changes tested?
Yes, by existing tests.
### Are there any user-facing changes?
No, the API changes should not break any compatibility.
* GitHub Issue: #37891
Lead-authored-by: chrisxu333 <chrisxu333@gmail.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
0 commit comments