Reflection in C++ 20
1 points
19 hours ago
| 1 comment
| github.com
| HN
johnagrillo
19 hours ago
[-]
I discovered constexpr member pointers somewhere when looking at c++20. You can use them as compile time annotations to enable full reflection in c++20.

I got tired of playing with BOOST and nholman and wanted a better solution to reflection and had a lot of fun doing this.

just type safe c++20 constexprs. No macros. No compiler tricks. This is framework c++ 26 might use for reflection. You can use it now. Reflection is fun

Your mileage may vary

reply