diff --git a/include/fc/io/raw.hpp b/include/fc/io/raw.hpp index 6a68c8f..022c0ff 100644 --- a/include/fc/io/raw.hpp +++ b/include/fc/io/raw.hpp @@ -689,7 +689,7 @@ namespace fc { void unpack( Stream& s, boost::endian::endian_buffer& v, uint32_t _max_depth ) { FC_ASSERT( _max_depth > 0 ); - s.read( v.data(), sizeof(v) ); + s.read( (char*)&v, sizeof(v) ); } diff --git a/include/fc/network/ip.hpp b/include/fc/network/ip.hpp index e183220..cbc984f 100644 --- a/include/fc/network/ip.hpp +++ b/include/fc/network/ip.hpp @@ -82,13 +82,13 @@ namespace fc { namespace raw { template - inline void pack( Stream& s, const ip::address& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ) + void pack( Stream& s, const ip::address& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ) { FC_ASSERT( _max_depth > 0 ); fc::raw::pack( s, uint32_t(v), _max_depth - 1 ); } template - inline void unpack( Stream& s, ip::address& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ) + void unpack( Stream& s, ip::address& v, uint32_t _max_depth=FC_PACK_MAX_DEPTH ) { FC_ASSERT( _max_depth > 0 ); uint32_t _ip;