[Need Advice] How to Handle Many Private Variables and Dynamic Matrices? #1539
Replies: 1 comment 6 replies
-
Adding The example uses fixed matrices, which Glaze has built in support for by including |
Beta Was this translation helpful? Give feedback.
-
Suppose there's a class that needs to be serialized to JSON:
The class contains many private variables and does not have getters or setters (so the class_with_const_mem_func example in json_test.cpp is not quite applicable). What is a recommended approach to handle this? Would using friend functions be a viable solution? Additionally, how should dynamic Eigen matrices within a struct or class be "properly" serialized?
Beta Was this translation helpful? Give feedback.
All reactions