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

FR: Decoupling reflection #146

Open
asolwa opened this issue Jan 25, 2024 · 1 comment
Open

FR: Decoupling reflection #146

asolwa opened this issue Jan 25, 2024 · 1 comment

Comments

@asolwa
Copy link
Contributor

asolwa commented Jan 25, 2024

Hi,
I want to create custom templated serialization method based on provided reflection capabilities for aggregate types(visit_members_types, visit_members).

Unfortunately those methods depends on number_of_members, which depends on has_serializer producing circular dependency.
It makes those reflection functions unusable in serialize methods.

I think that it might be useful to make those reflections methods independent of any serialization methods.

https://godbolt.org/z/GqT6f67Wd

@eyalz800
Copy link
Owner

Interesting idea, I’ll need to think if there is a workaround that you can use right now without any code change, because this usage of visiting members is intended to work without the custom serialization function.

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

No branches or pull requests

2 participants