TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection
MIT License
124 stars 6 forks source link

Private Reflection #112

Closed TheNitesWhoSay closed 11 months ago

TheNitesWhoSay commented 12 months ago

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.

TheNitesWhoSay commented 11 months ago

Private reflection was released in 2.2.0, see intro docs

Or the examples