diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 5b3bfc6..27b376f 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -151,6 +151,13 @@ namespace fc { s.read( (char*)&v.data[0], N ); } FC_RETHROW_EXCEPTIONS( warn, "fc::array", ("length",N) ) } + template + inline void pack( Stream& s, const std::shared_ptr& v, uint32_t _max_depth ) + { + FC_ASSERT( _max_depth > 0 ); + fc::raw::pack( s, *v, _max_depth - 1 ); + } + template inline void unpack( Stream& s, std::shared_ptr& v, uint32_t _max_depth ) { try {