HuaHuaY commented on code in PR #50714:
URL: https://github.com/apache/arrow/pull/50714#discussion_r3676199812


##########
cpp/src/arrow/util/iterator.h:
##########
@@ -364,8 +363,7 @@ class FunctionIterator {
 };
 
 /// \brief Construct an Iterator which invokes a callable on Next()
-template <typename Fn,
-          typename Ret = typename 
internal::call_traits::return_type<Fn>::ValueType>
+template <typename Fn, typename Ret = typename 
std::invoke_result_t<Fn&>::ValueType>

Review Comment:
   I suspect the role of `Ret` is to trigger SFINAE, so we could replace it 
with `requires`.



-- 
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