-
Notifications
You must be signed in to change notification settings - Fork 160
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
View manipulator and is_reflectable trait #107
Conversation
…view_n_is_reflectable
I don't want to devalue your work, after all thanks for at least trying to work on this. Probably you misunderstood me, it seems that pfr/include/boost/pfr/detail/fields_count.hpp Lines 77 to 92 in b7d839b
Also, a general rule: the less code is for a review the faster your PR is getting reviewed and more chances for it to be merged in a timely manner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks
|
||
There are three ways to start using Boost.PFR from other library for type `T` in your code. Each method has its own drawbacks and suits own cases. | ||
|
||
[table:ops_comp Different approaches for interaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the table id to something unique, for example to table:libs_integration_comp
|
||
This method is good if you're writing generic algorithms using a library with Boost.PFR support and need to use reflection from Boost.PFR only if the type can't be recognized by the library: | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some day this code snippet should be moved into cpp file and compiled like pfr_sample_adapting
[[ | ||
[headerref boost/pfr/view.hpp boost/pfr/view.hpp: view] | ||
][ | ||
Use when you need to access values by library's provided for them reflection or via field-by-field reflection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use when you need to access values by library's provided for them reflection or via field-by-field reflection. | |
Use when you need to access values by other library provided reflection or via field-by-field reflection from Boost.PFR. |
?
I do understand you about your issue automatic |
Not actual. Actual PR here: #111 |
#100