Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Provide a simple reflection utility for {{struct}}s #28802

Closed
asfimport opened this issue Jun 16, 2021 · 1 comment
Closed

[C++] Provide a simple reflection utility for {{struct}}s #28802

asfimport opened this issue Jun 16, 2021 · 1 comment

Comments

@asfimport
Copy link
Collaborator

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

Reporter: Ben Kietzman / @bkietz
Assignee: Ben Kietzman / @bkietz

PRs and other links:

Note: This issue was originally created as ARROW-13097. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Ben Kietzman / @bkietz:
Issue resolved by pull request 10551
#10551

@asfimport asfimport added this to the 5.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants