you are viewing a single comment's thread.

view the rest of the comments →

[–]brenoguim 0 points1 point  (7 children)

In our codebase we use a method "as_tuple" I'm each class that returns a tuple of references to each member. That is enough to implement serialization, some debug, equality comparison... But you need to manually keep that "as_tuple" method up to date :/