u/Betsunei

Tips on using reflection effectively?

I am trying out reflection to convert a struct into its components in an ECS:
https://github.com/isaiahoh/ecs_with_reflection, using C++20 modules, xmake, and GCC 16. I usually use clangd as my LSP, but since it doesn't have reflection yet, I don't have the usual lints and static analysis. I asked Claude to help me fill in the blanks and help with an example, but I wanted to check here for any suggestions on improvements or how I can write better C++!

reddit.com
u/Betsunei — 3 days ago