3 ms·
A few years ago Herb Sutter proposed Python-like metaclasses in C++ through compile-time code generation. Not sure if anything has been proposed for general use
by tylerhou 6y ago
A few years ago Herb Sutter proposed Python-like metaclasses in C++ through compile-time code generation. Not sure if anything has been proposed for general use.
https://www.youtube.com/watch?v=4AfRAVcThyA https://www.youtube.com/watch?v=4AfRAVcThyA
- OneGuy123 6y agoUnreal Engine 4 creates C++ reflection classes by parsing the headers and some of their custom macros that you define for member variables & function. It basicaly allows you full C++ reflection, but only for classes that you mark with the UE4 macros.