TheNitesWhoSay / RareCpp

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

Improve Templates & Proxy-Reflection JSON #88

Closed TheNitesWhoSay closed 2 years ago

TheNitesWhoSay commented 2 years ago

While some limitation with regards to reflecting templated classes is expected e.g...

Support could be a lot better than it is at present. Also the current workaround it to use proxy reflection on full specializations, but that's not fully working with JSON, need this to be working as well.

TheNitesWhoSay commented 2 years ago

JSON for proxy-reflected types is looking good as of https://github.com/TheNitesWhoSay/RareCpp/pull/89

It also seems much more support can be given to templated types than initially expected, e.g. I've managed to get a simple example working on my local

template <typename T>
struct Templated
{
    T a;
    T b;

    REFLECT(Templated, a, b)
};