Hacker News new | ask | show | jobs
by tylerhou 2020 days 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

1 comments

Unreal 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.