Deprecate default pack/unpack functions for class
This commit is contained in:
parent
769dd980b7
commit
85ea20e2c9
1 changed files with 8 additions and 2 deletions
|
|
@ -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<>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue