cereal
A C++11 library for serialization
|
A struct that prevents implicit conversion. More...
#include </home/shane/workspace/cereal/include/cereal/details/traits.hpp>
Public Types | |
using | type = Source |
Used to get underlying type easily. | |
Public Member Functions | |
template<class Dest , class = typename std::enable_if<std::is_same<Source, Dest>::value>::type> | |
operator Dest ()=delete | |
template<class Dest , class = typename std::enable_if<std::is_same<Source, Dest>::value>::type> | |
operator Dest & () | |
only allow conversion if the types are the same and we are converting into a const reference | |
A struct that prevents implicit conversion.
Any type instantiated with this struct will be unable to implicitly convert to another type. Is designed to only allow conversion to Source &.
Source | the type of the original source |