cereal
A C++11 library for serialization
Public Types | List of all members
cereal::traits::strip_minimal< T, IsCerealMinimalTrait > Struct Template Reference

Extracts the true type from something possibly wrapped in a cereal NoConvert. More...

#include </home/shane/workspace/cereal/include/cereal/details/traits.hpp>

Public Types

using type = T
 

Detailed Description

template<class T, bool IsCerealMinimalTrait = std::is_base_of<detail::NoConvertBase, T>::value>
struct cereal::traits::strip_minimal< T, IsCerealMinimalTrait >

Extracts the true type from something possibly wrapped in a cereal NoConvert.

Internally cereal uses some wrapper classes to test the validity of non-member minimal load and save functions. This can interfere with user type traits on templated load and save minimal functions. To get to the correct underlying type, users should use strip_minimal when performing any enable_if type type trait checks.

See the enum serialization in types/common.hpp for an example of using this


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