4 ms·
boost::pfr is also huge for reflection in C++. It leverages corner cases of the language and compilers but does so uniformly (works for MSVC, GCC, clang which i
by jcelerier 3y ago
boost::pfr is also huge for reflection in C++. It leverages corner cases of the language and compilers but does so uniformly (works for MSVC, GCC, clang which is all that matters in 2023).
It allowed me to write for instance https://GitHub.com/celtera/avendish https://GitHub.com/celtera/avendish which keeps on giving. The last version even add automatic field name reflection which is huge: https://www.boost.org/doc/libs/master/doc/html/boost_pfr/tutorial.html#boost_pfr.tutorial.reflection_of_field_name https://www.boost.org/doc/libs/master/doc/html/boost_pfr/tut...
- pjmlp 3y agoThanks for the hint, wasn't aware of it.
- spacechild1 3y agoWow, how does this even work? Can you share some hints?
- jcelerier 3y agohttps://www.reddit.com/r/cpp/comments/17rnuh6/comment/k8srx55/ https://www.reddit.com/r/cpp/comments/17rnuh6/comment/k8srx5...