The is the source for a base of C++ reflection system. You can find more details in my blog https://ongamex.github.io/ Just compile to files together to see it in action.