From 9069e05cb0a44baf5492b4fb8069882327d3e5fe Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Wed, 15 May 2019 12:48:06 +0200 Subject: [PATCH] Get rid of some inlines --- include/fc/io/raw.hpp | 2 +- include/fc/network/ip.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;