|
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 <cereal/access.hpp>
Static Public Member Functions | |
| static void | load_and_allocate (...) |
| Called by cereal if no default constructor exists to load and allocate data simultaneously. More... | |
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 LoadAndAllocate for your class, and provide an appropriate load_and_allocate method.
The specialization of LoadAndAllocate must be placed within the cereal namespace:
| T | The type to specialize for |
|
inlinestatic |
Called by cereal if no default constructor exists to load and allocate data simultaneously.
Overloads of this should return a pointer to T and expect an archive as a parameter
1.8.3.1