From 379e59f6618a46722f949460d35311121085803d Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Sun, 21 Apr 2019 10:41:30 +0200 Subject: [PATCH] Moved delete declaration to raw_fwd --- include/fc/io/raw.hpp | 4 ---- include/fc/io/raw_fwd.hpp | 6 ++++-- 2 files changed, 4 insertions(+), 6 deletions(-) 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 );