śr., 30 wrz 2020 o 13:57 Peter Dimov
Andrzej Krzemienski wrote:
My ideal solution would be if these two libraries (PFR and Describe) would be merged into one, so that: 1. They provide the same interface 2. A user can easily instruct the library: "this is an aggregate: figure out the mapping yourself".
The two libraries don't really overlap, even though they enable the same functionality. Describe gives you member names (and other things such as member functions, inherited members and base classes), but it requires explicit registration; PFR only gives you references to the data members, but works without registration. There's no reasonable way for the two to be merged.
Yes, I see what you are saying. I guess, it is just my use case. I need to provide a tuple-like access to structures, not necessarily as simple as aggregates. I want to do it in a way that requires as little of additional typing as possible. Now it looks like the only way to do that is to provide a third library on top that would delegate either to FPR or Describe as needed... Rgrds, &rzej;