memplusplus
memplusplus copied to clipboard
Fix updating GcPtr's internal pointer (get rid of offsetof and use RTTI + pointer to a member?)
This might require rewriting GcPtr base class to contain pointer to an object?
https://stackoverflow.com/questions/7464068/base-class-fields-offset
Even better - move pointer to an object inside GcPtr base class. Make UpdatePtr and GetVoid non-virtual. In the GC loop simply cast to GcPtr and call UpdatePtr on it.