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

Investigate the possibility of automatically converting a struct into a matioCpp struct using reflection #53

Closed
S-Dafarra opened this issue Jan 5, 2022 · 1 comment · Fixed by #55
Assignees

Comments

@S-Dafarra
Copy link
Member

Related links:

https://stackoverflow.com/questions/63467178/modern-way-to-access-struct-fields-by-name-in-c

In particular, I found pretty interesting https://github.com/garbageslam/visit_struct

The main drawback is that the struct needs to be modified, specifying which entry can be accessed. On the other hand, this might be useful since some types cannot be automatically converted into matioCpp variables. In addition, the options that do not need to modify the struct, usually cannot get the names of the fields. See https://bytemaster.github.io/boost_reflect/ and https://github.com/apolukhin/magic_get

@S-Dafarra
Copy link
Member Author

Fixed by #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant