4 ms·
Not familiar with "boosting", but I'm definitely a fan of concepts and reflection. Reflection is absolutely gonna feel completely alien to people for a while,
by wsve 2y ago
Not familiar with "boosting", but I'm definitely a fan of concepts and reflection.
Reflection is absolutely gonna feel completely alien to people for a while, but there's a lot of areas in our codebase where I wish I could simply describe a data layout and have the efficient code generated for me instead of writing tons of boilerplate. Take JSON serialization for example. Currently, you have to write your (de)serialization by hand, but with the new reflection stuff one could do it based on a struct's members, and with less error. It'll be wonderful for writing new libraries that will make our lives easier.
- nuancebydefault 2y agoThanks for your feedback! It would be great to have reflection in C++,I did not know it was on the radar! Is there a compiler that supports it currently?
- jcelerier 2y agoCheck out boost.pfr, it gets you there for a lot of cases. Here's a library I built with it: https://github.com/celtera/avendish https://github.com/celtera/avendish It's a proper quantum leap compared to pre-reflection