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

muliple wrapped types #30

Closed
matpen opened this issue Jan 1, 2017 · 2 comments
Closed

muliple wrapped types #30

matpen opened this issue Jan 1, 2017 · 2 comments

Comments

@matpen
Copy link

matpen commented Jan 1, 2017

I have used RTTR for a while now and first of all I wanted to renew my gratitude for a great library.

The issue I am facing now concerns template types with multiple template arguments.
For example pairs (e.g. std::pair<std::string, double>) or maps (e.g. std::map<std::string, double>).

Is there a way to implement a "wrapper_mapper" and/or an "array_mapper" to access the wrapped types in these cases?

@acki-m
Copy link
Contributor

acki-m commented Jan 1, 2017

I am working right now on a variant_map_view. So this will come. However for the std::pair, you can just register the properties first & second. Then you can extract the values via a property. Is this okay for you?

@matpen
Copy link
Author

matpen commented Jan 2, 2017

Great idea: simple and effective! Yes that suits me for std::pair.
Then I will just wait for variant_map_view... thank you for doing that. Would you mind closing this issue after committing that change, so I get notified?

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