NDDEM
Public Types | Static Public Member Functions | List of all members
cereal::detail::polymorphic_serialization_support< Archive, T > Struct Template Reference

#include <polymorphic_impl.hpp>

Public Types

typedef instantiate_function< instantiateunused
 This typedef causes the compiler to instantiate this static function. More...
 

Static Public Member Functions

static CEREAL_DLL_EXPORT void instantiate () CEREAL_USED
 

Detailed Description

template<class Archive, class T>
struct cereal::detail::polymorphic_serialization_support< Archive, T >

This struct is used as the return type of instantiate_polymorphic_binding for specific Archive types. When the compiler looks for overloads of instantiate_polymorphic_binding, it will be forced to instantiate this struct during overload resolution, even though it will not be part of a valid overload

Member Typedef Documentation

◆ unused

template<class Archive , class T >
typedef instantiate_function<instantiate> cereal::detail::polymorphic_serialization_support< Archive, T >::unused

This typedef causes the compiler to instantiate this static function.

Member Function Documentation

◆ instantiate()

template<class Archive , class T >
CEREAL_DLL_EXPORT void cereal::detail::polymorphic_serialization_support< Archive, T >::instantiate
static

Creates the appropriate bindings depending on whether the archive supports saving or loading


The documentation for this struct was generated from the following files: