diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 27b376f..696f398 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -129,8 +129,6 @@ namespace fc { usec = fc::microseconds(usec_as_int64); } FC_RETHROW_EXCEPTIONS( warn, "" ) } - template - inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth ) = delete; template inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth ) { s.write( &v.data[0], N ); @@ -140,8 +138,6 @@ namespace fc { s.write( (char*)&v.data[0], N ); } - template - inline void unpack( Stream& s, fc::array& v, uint32_t _max_depth ) = delete; template inline void unpack( Stream& s, fc::array& v, uint32_t _max_depth ) { try { s.read( &v.data[0], N ); diff --git a/include/fc/io/raw_fwd.hpp b/include/fc/io/raw_fwd.hpp index f8cf921..30c67db 100644 --- a/include/fc/io/raw_fwd.hpp +++ b/include/fc/io/raw_fwd.hpp @@ -123,8 +123,10 @@ namespace fc { template inline void unpack( Stream& s, boost::endian::endian_buffer& v, uint32_t _max_depth ); - template inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ); - template inline void unpack( Stream& s, fc::array& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH); + template + inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth ) = delete; + template + inline void unpack( Stream& s, fc::array& v, uint32_t _max_depth ) = delete; template inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ); template inline void unpack( Stream& s, fc::array& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH); template inline void pack( Stream& s, const fc::array& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH );