Deprecate default pack/unpack functions for class

This commit is contained in:
abitmore 2018-03-14 06:25:14 -04:00
parent 769dd980b7
commit 85ea20e2c9

View file

@ -354,9 +354,15 @@ namespace fc {
template<typename IsClass=fc::true_type> template<typename IsClass=fc::true_type>
struct if_class{ struct if_class{
template<typename Stream, typename T> template<typename Stream, typename T>
static inline void pack( Stream& s, const T& v, uint32_t _max_depth ) { s << v; } static inline void pack( Stream& s, const T& v, uint32_t _max_depth )
{
FC_ASSERT( false, "Please implement pack(...)" );
}
template<typename Stream, typename T> template<typename Stream, typename T>
static inline void unpack( Stream& s, T& v, uint32_t _max_depth ) { s >> v; } static inline void unpack( Stream& s, T& v, uint32_t _max_depth )
{
FC_ASSERT( false, "Please implement unpack(...)" );
}
}; };
template<> template<>