Comments (3)
Hello, first apologies for the review of #243 is just me lagging hard because of my role in the startup I build, sorry for this, I really appreciate the great work integrating fusion with pfr, I just couldn't finish my review yet, I actually have started changing our code at tipi.build that uses Boost.Fusion to use the pfr enabled patch and so far it looks great.
The only thing that bothers me is that we loose the string name representation of the field in comparison to non-PFR adaption that always populate it, do you have any alternative to do that ?
Regarding the tie_members constexpr member that would be the same issue I would see, additionally without thinking too much why not consteval instead of constexpr, as this never has to run at runtime ?
from fusion.
The only thing that bothers me is that we loose the string name representation of the field in comparison to non-PFR adaption that always populate it, do you have any alternative to do that ?
PFR does not provide such an opportunity, most likely it is not possible, not the fact that the language will allow this.
If someone needs this in fusion, we will have to contrive.
from fusion.
Well I don't think it has been fusion goal in the design of fusion. I think I asked @djowel once about the fact of adding more reflection capabilities and he didn't thought it was a good idea to have it inside fusion.
It just happens to be used heavily and relied upon. I wouldn't put it as something required, I was just curious if you had any trick or magic you used in such case. One could always map the member string name by instantiating templates manually, now that I think to it.
from fusion.
Related Issues (20)
- Get member name of sequence defined by BOOST_FUSION_DEFINE_STRUCT_INLINE HOT 1
- boost::fusion::map or boost::fusion::map surprising behavior HOT 2
- Overzealously defining __device__ functions when compiling with nvcc HOT 3
- reverse_fold has no static assert for requiring bidirectional sequence HOT 1
- Testcase failure with optimization -O2 and -O1 in gcc and llvm
- Propose for inplace construct from Fusion Sequence
- List of non BOOST-prefixed macros
- clang-10 warning: definition of implicit copy constructor is deprecated HOT 1
- associability of single_view (and associability preservation of some algorithms)
- make_map<int>(make_vector()) cannot be compiled HOT 3
- What about "boost pfr" extension? HOT 8
- Is there a identity_view? HOT 8
- Potential non consistency in documentation HOT 2
- CI for Linux? HOT 2
- qvm not usable in spirit::x3
- The result of `value_at` with `std::tuple` does not match result of `value_at` with `boost::fusion::vector` HOT 2
- Please sync main branch with develop HOT 12
- 'J': is not a valid type for non-type template parameter 'J' error in boost\fusion\container\vector\vector.hpp HOT 2
- BOOST_FUSION_ADAPT_ADT macro over 256 elements support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusion.