zpp_bits
zpp_bits copied to clipboard
Help with std::vector of a big object.
Hello,
Code at: https://godbolt.org/z/3WW4fbs18
Ignore the ugliness of the structures. Basically if serializing Board_t, it's all good, but if serializing std::vector<Board_t> it's as though zpp cannot find the custom serializer and thus default to internal automatic handling which fail because there are more than 50 variables, yet the custom serializer for Board_t only serialized one variable.
It will work if the custom serializer is put inside the Board_t struct https://godbolt.org/z/4q9anToYo but that's not a viable solution for us.
Regards,
Mario
Try to put the serialize function in the same namespace as your type: https://godbolt.org/z/onqPYTTT6
That did it thanks