You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2021/06/16 16:02:00 UTC

[jira] [Created] (ARROW-13097) [C++] Provide a simple reflection utility for {{struct}}s

Ben Kietzman created ARROW-13097:
------------------------------------

             Summary: [C++] Provide a simple reflection utility for {{struct}}s
                 Key: ARROW-13097
                 URL: https://issues.apache.org/jira/browse/ARROW-13097
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Ben Kietzman


In cases such as ARROW-13025 it's advantageous to avoid boilerplate when dealing with objects which are basic structs of data members. A simple reflection utility (get/set the value of a data member, print the name of a member to string) would allow writing functionality generically in terms of a tuple of properties, greatly reducing boilerplate.

See a sketch of one such utility here https://gist.github.com/bkietz/7899f477e86df49f21ab17201c518d74



--
This message was sent by Atlassian Jira
(v8.3.4#803005)