[ 
https://issues.apache.org/jira/browse/ARROW-9080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129369#comment-17129369
 ] 

Antoine Pitrou commented on ARROW-9080:
---------------------------------------

Uh, I think we discussed this already... and when I asked the question, the 
consensus was that we wanted to avoid shared_ptr cost where not required. This 
is why that function returns {{Result<unique_ptr<Buffer>>}}.

> [C++] arrow::AllocateBuffer returns a Result<unique_ptr<Buffer>>
> ----------------------------------------------------------------
>
>                 Key: ARROW-9080
>                 URL: https://issues.apache.org/jira/browse/ARROW-9080
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 1.0.0
>
>
> This seemed counterintuitive to me since using Buffers almost anywhere 
> requires a shared_ptr<Buffer>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to