bkietz commented on a change in pull request #8362:
URL: https://github.com/apache/arrow/pull/8362#discussion_r501053982
##########
File path: cpp/src/arrow/util/future.h
##########
@@ -154,9 +154,8 @@ class FutureStorage : public FutureStorageBase {
Status status() const { return result_.status(); }
- template <typename U>
- void MarkFinished(U&& value) {
- result_ = std::forward<U>(value);
+ void MarkFinished(Result<T> result) {
Review comment:
Yes, because `Result<T>` already has that implicit constructor
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]