Ben Hymers

Ben Hymers

1p

2 comments posted · 0 followers · following 0

8 years ago @ Preshing on Programming - A Flexible Reflection ... · 0 replies · +5 points

Ah sorry, I mean in [de]serialisation rather than reflection - e.g. TypeDescriptor::dump. Like if you had two Nodes with pointers to each other, currently it would recurse forever. (not that you could do that when using unique_ptr though!)

This is something that I'm curious about how to implement in a nice simple way - it seems to end up adding a large amount of complexity to otherwise simple elegant solutions like this!

8 years ago @ Preshing on Programming - A Flexible Reflection ... · 2 replies · +5 points

Do you have a nice way to handle reference cycles? (relevant for save games probably)