felipecrv commented on code in PR #33912:
URL: https://github.com/apache/arrow/pull/33912#discussion_r1091329095


##########
cpp/src/arrow/result.h:
##########
@@ -371,7 +371,7 @@ class [[nodiscard]] Result : public 
util::EqualityComparable<Result<T>> {
     if (ok()) {

Review Comment:
   > It seems the version without the moves (and especially without the copies) 
would be preferred.
   
   You're right @westonpace. I stand corrected.
   
   The implementation from `optional` you linked does exactly as this PR plus a 
`static_assert` with a nice error message that we could adopt.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to