rttr icon indicating copy to clipboard operation
rttr copied to clipboard

How does this library work?

Open ghost opened this issue 6 years ago • 0 comments

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!

ghost avatar May 29 '19 08:05 ghost