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.
It basicaly allows you full C++ reflection, but only for classes that you mark with the UE4 macros.