Re:Why does everyone here seem to dislike C++?
by vardump on Friday June 03, 2016 @11:43AM
(#11830968)
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.
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.