You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/12 12:50:10 UTC

[GitHub] [arrow] pitrou commented on a diff in pull request #33608: GH-33607: [C++] Support optional additional arguments for inline visit functions

pitrou commented on code in PR #33608:
URL: https://github.com/apache/arrow/pull/33608#discussion_r1068084056


##########
cpp/src/arrow/visit_array_inline.h:
##########
@@ -27,11 +27,14 @@ namespace arrow {
   case TYPE_CLASS##Type::type_id:                                                        \
     return visitor->Visit(                                                               \
         internal::checked_cast<const typename TypeTraits<TYPE_CLASS##Type>::ArrayType&>( \
-            array));
+            array),                                                                      \
+        args...);

Review Comment:
   Wouldn't it be better to use something like `std::forward<decltype(args)>`?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org