mlpack
Public Member Functions | List of all members
cereal::PointerVariantWrapper< VariantTypes > Class Template Reference

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)
 

Detailed Description

template<typename... VariantTypes>
class cereal::PointerVariantWrapper< VariantTypes >

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


The documentation for this class was generated from the following file: