From 85ea20e2c98c07e0add34bd9453b635f5358b253 Mon Sep 17 00:00:00 2001 From: abitmore Date: Wed, 14 Mar 2018 06:25:14 -0400 Subject: [PATCH] Deprecate default pack/unpack functions for class --- include/fc/io/raw.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index d7e8bcd..ed6e81a 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -354,9 +354,15 @@ namespace fc { template struct if_class{ template - 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 - 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<>