[
https://issues.apache.org/jira/browse/ARROW-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796197#comment-16796197
]
Micah Kornfield commented on ARROW-4800:
----------------------------------------
The linked reference seems relatively simple, and returns a reference when
unboxing. I believe this could probably be made more complex to support
move-semantics as well. I've mostly seen usage of this type with either
primitives or unique/shared pointers so the cost hasn't been an issue.
> [C++] Create/port a StatusOr implementation to be able to return a status or
> a type
> -----------------------------------------------------------------------------------
>
> Key: ARROW-4800
> URL: https://issues.apache.org/jira/browse/ARROW-4800
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Affects Versions: 0.14.0
> Reporter: Micah Kornfield
> Priority: Minor
>
> Example from grpc:
> https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/stubs/statusor.h
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)