I recently pulled the latest commits from cereal repo and suddently one of my classes stopped serializing like it used to do before. The error message is this one:
Some problem serializing the file: Trying to save an unregistered polymorphic type [...]
after some bisecting the commit "introducing this error" is this one: 994acee
the class failing serialization is build i a solib, its a polymorphyc type and it used to serialize perfectly before this commit. I though some cereal change was trying to force me to use CEREAL_REGISTER_DYNAMIC_INIT and CEREAL_FORCE_DYNAMIC_INIT to force instantiate my class but I did not had too much success in using them, maybe cause it is not compeltely clear to me where these should be placed (do I need to place them both?)
I am registering my polymorphic types in the source file associated with the class's header.
any help on this topic?
many thanks
I recently pulled the latest commits from cereal repo and suddently one of my classes stopped serializing like it used to do before. The error message is this one:
after some bisecting the commit "introducing this error" is this one: 994acee
the class failing serialization is build i a solib, its a polymorphyc type and it used to serialize perfectly before this commit. I though some cereal change was trying to force me to use CEREAL_REGISTER_DYNAMIC_INIT and CEREAL_FORCE_DYNAMIC_INIT to force instantiate my class but I did not had too much success in using them, maybe cause it is not compeltely clear to me where these should be placed (do I need to place them both?)
I am registering my polymorphic types in the source file associated with the class's header.
any help on this topic?
many thanks