cereal
A C++11 library for serialization
|
Begins the binding process of a type to all registered archives. More...
#include </build/libcereal-SAfJB3/libcereal-1.3.2+dfsg/include/cereal/details/polymorphic_impl.hpp>
Public Member Functions | |
void | bind (std::false_type) const |
Binding for non abstract types. | |
void | bind (std::true_type) const |
Binding for abstract types. | |
bind_to_archives const & | bind () const |
Binds the type T to all registered archives. More... | |
Begins the binding process of a type to all registered archives.
Archives need to be registered prior to this struct being instantiated via the CEREAL_REGISTER_ARCHIVE macro. Overload resolution will then force several static objects to be made that allow us to bind together all registered archive types with the parameter type T.
|
inline |
Binds the type T to all registered archives.
If T is abstract, we will not serialize it and thus do not need to make a binding