Hi,
Has anyone here ever used Cereal along with pybind11 to create bindings for custom objects, creating those objects in python and then using pybind11 bound functions to serialize those objects?
I've been fighting with this for a while, and have been hitting a bunch of different problems, sorts of feels like whack-a-mole. Just wondering if anyone here has any experience to share, or thoughts on if i'm just struggling down a path thats not going to work.
My most recent problem is that when i try and serialize an object I get the error
Trying to save an unregistered polymorphic type... which then talks about using CEREAL_REGISTER_TYPE and possibly having to use CEREAL_REGISTER_DYNAMIC_INIT.
I am already using CEREAL_REGISTER_TYPE. All the custom classes and their serialization functions are in header files.
I am building the pybind11 module in to a shared library, that is linking against the library with my base functionality (I want to be able to use this library without the pybind11 bindings as well).
Anyone have any clues/thoughts/ideas?
Thanks