|
mlpack
|
The objective of this class is to create a wrapper for boost::variant. More...
#include <pointer_variant_wrapper.hpp>
Public Member Functions | |
| PointerVariantWrapper (boost::variant< VariantTypes... > &pointerVar) | |
| template<class Archive > | |
| void | save (Archive &ar) const |
| template<class Archive > | |
| void | load (Archive &ar) |
The objective of this class is to create a wrapper for boost::variant.
Cereal supports the serialization of boost::variant, but we need to serialize it if it holds a raw pointers. This class depeds on the PointerWrapper we have already created in which it is used to serialize each variant independently
1.8.13