pitrou commented on a change in pull request #8232: URL: https://github.com/apache/arrow/pull/8232#discussion_r492540465
########## File path: cpp/src/arrow/compute/kernel.h ########## @@ -664,7 +664,7 @@ struct VectorKernel : public ArrayKernel { using ScalarAggregateConsume = std::function<void(KernelContext*, const ExecBatch&)>; using ScalarAggregateMerge = - std::function<void(KernelContext*, const KernelState&, KernelState*)>; + std::function<void(KernelContext*, KernelState&, KernelState*)>; Review comment: If it can be moved, shouldn't you pass `KernelState&&` instead? ---------------------------------------------------------------- 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: us...@infra.apache.org