HyukjinKwon opened a new pull request, #48909:
URL: https://github.com/apache/arrow/pull/48909

   ### Rationale for this change
   
   The `call_traits` utility only supported lambdas and functors, but not 
function pointers. This prevented simplifying code like `fut.Then([](T x) { 
return Func(x); })` to `fut.Then(Func)`, as described in GH-18652.
   
   ### What changes are included in this PR?
   
   - Added function pointer support to `arrow::internal::call_traits` in 
`cpp/src/arrow/util/functional.h`
   - Applied the simplifications.
   
   ### Are these changes tested?
   
   Yes, I ran all existing tests locally.
   
   ### Are there any user-facing changes?
   
   No.


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