1
General discussions / Fun times with C++ reflection and tuples
« on: February 25, 2014, 06:52:46 am »
Hey guys, I scourged the interwebs today stealing everybody's code and put this little demo together.
The whole system is based off of C++11's std::tuple.
What started this furious rampage was me trying to get automatic serialization that could go beyond primitive types. I want to have custom encoding for custom objects. Until C++10923812093809 whatever comes out with compile-time reflection, I made this. Lemme know what you guys think (i.e. probably its complete garbage).
Link: https://github.com/tedsta/Reflectable
I stole code from these places so far:
http://stackoverflow.com/a/13066078
http://stackoverflow.com/a/6894436
Check the readme for some benchmarks. Don't know exactly what those compiler optimizations do.
The whole system is based off of C++11's std::tuple.
What started this furious rampage was me trying to get automatic serialization that could go beyond primitive types. I want to have custom encoding for custom objects. Until C++10923812093809 whatever comes out with compile-time reflection, I made this. Lemme know what you guys think (i.e. probably its complete garbage).
Link: https://github.com/tedsta/Reflectable
I stole code from these places so far:
http://stackoverflow.com/a/13066078
http://stackoverflow.com/a/6894436
Check the readme for some benchmarks. Don't know exactly what those compiler optimizations do.