Skip to content

error in serialization after commit 994aceeec09cee78378fd5e172aafde5c13d4800 #180

@luca-penasa

Description

@luca-penasa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions