rttr
rttr copied to clipboard
How does this library work?
Hi,
I was creating my own runtime reflection system but failed to do so, so I went looking for how other libraries do it, and I found your library. In my own library I used offsetof to find the offset, and simply append that to the pointer of the object containing the variables. This worked, but not with inherited objects.(Docs say offsetof only works with POD types or something) So I am wondering how you managed to make it work? What is your technique for knowing how to access the varaible? Do you store the offset like I did or do you do something else?
Thanks!