cereal
A C++11 library for serialization
|
A class that allows cereal to load smart pointers to types that have no default constructor. More...
#include </build/libcereal-SAfJB3/libcereal-1.3.2+dfsg/include/cereal/access.hpp>
A class that allows cereal to load smart pointers to types that have no default constructor.
If your class does not have a default constructor, cereal will not be able to load any smart pointers to it unless you overload LoadAndConstruct for your class, and provide an appropriate load_and_construct method. You can also choose to define a member static function instead of specializing this class.
The specialization of LoadAndConstruct must be placed within the cereal namespace:
Please note that just as in using external serialization functions, you cannot get access to non-public members of your class by befriending cereal::access. If you have the ability to modify the class you wish to serialize, it is recommended that you use member serialize functions and a static member load_and_construct function.
load_and_construct functions, regardless of whether they are static members of your class or whether you create one in the LoadAndConstruct specialization, have the following signature:
Versioning behaves the same way as it does for standard serialization functions.
T | The type to specialize for |