Hacker News new | ask | show | jobs
by vardump 3674 days ago
Generic reflection for C++ would require disabling optimizations that affect object memory layout somehow. It would also mean you need to have all the symbols present.

It would also require additional overhead for RTTI information per object, if you want it to work using arbitrary void *.

It'd br great to have reflection of course. At least so some subset, non-generic but with zero (or low) overhead.

Just being able to iterate known type struct or class fields could be something.