From 23761bade5e02e9ce30148a520d3c42bd8c380ff Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Mon, 13 May 2019 10:29:19 +0200 Subject: [PATCH] Dont inline generic pack/unpack to enable externalized serialization --- include/fc/io/raw.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 4e81b30..4247a7c 100755 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -524,11 +524,11 @@ namespace fc { template - inline void pack( Stream& s, const T& v ) { + void pack( Stream& s, const T& v ) { fc::raw::detail::if_reflected< typename fc::reflector::is_defined >::pack(s,v); } template - inline void unpack( Stream& s, T& v ) + void unpack( Stream& s, T& v ) { try { fc::raw::detail::if_reflected< typename fc::reflector::is_defined >::unpack(s,v); } FC_RETHROW_EXCEPTIONS( warn, "error unpacking ${type}", ("type",fc::get_typename::name() ) ) }