curves issueshttps://gepgitlab.laas.fr/pfernbac/curves/-/issues2019-11-27T13:06:40Zhttps://gepgitlab.laas.fr/pfernbac/curves/-/issues/1Improve serialization code for derived class2019-11-27T13:06:40ZPierre FernbachImprove serialization code for derived classCurrent code is working but is complex and hard to maintain. This issue appeared because we want to serialize a pointer to an abstract class (ie. curve_abc).
The only solution found right now require to call the method `register_type()`...Current code is working but is complex and hard to maintain. This issue appeared because we want to serialize a pointer to an abstract class (ie. curve_abc).
The only solution found right now require to call the method `register_type()` from boost serialization (see https://www.boost.org/doc/libs/1_71_0/libs/serialization/doc/serialization.html) for all the classes derived from the abstract class, with all the combinatorial of template arguments ...
It is currently done for the most used class here : https://gepgitlab.laas.fr/pfernbac/curves/blob/2a3adf6652b98367560a6f3d254eae530eb34cf6/include/curves/serialization/registeration.h
Other solutions proposed in the boost::serialization doc, like using the macro BOOST_CLASS_EXPORT doesn't seems to work in this case, because the class used are templated.