TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Private Reflection

TheNitesWhoSay opened this issue · comments

Add the capability to reflect private variables from unowned objects (somewhat similar to proxying, but without regard for access-protection level). This form of reflection is expected to be limited to members for which pointers can be formed as it's based on the trick described in https://godbolt.org/z/hcjcjjqhz and will not be able to get many of the little details that the in-class REFLECT and REFLECT_NOTED macros can; all the same it should be possible to get the existing reflection interfaces working and returning reasonable results in a decent number of cases for unowned privates.