Get rid of some inlines
This commit is contained in:
parent
de46823a99
commit
9069e05cb0
2 changed files with 3 additions and 3 deletions
|
|
@ -689,7 +689,7 @@ namespace fc {
|
|||
void unpack( Stream& s, boost::endian::endian_buffer<O,T,N,A>& v, uint32_t _max_depth )
|
||||
{
|
||||
FC_ASSERT( _max_depth > 0 );
|
||||
s.read( v.data(), sizeof(v) );
|
||||
s.read( (char*)&v, sizeof(v) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -82,13 +82,13 @@ namespace fc {
|
|||
namespace raw
|
||||
{
|
||||
template<typename Stream>
|
||||
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<typename Stream>
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue