Merge pull request #16 from peerplays-network/beatrice
Update fc to sync with recent changes on beatrice
This commit is contained in:
commit
0358ca257e
2 changed files with 5 additions and 5 deletions
|
|
@ -618,12 +618,12 @@ namespace fc {
|
|||
|
||||
|
||||
template<typename Stream, typename T>
|
||||
inline void pack( Stream& s, const T& v, uint32_t _max_depth ) {
|
||||
void pack( Stream& s, const T& v, uint32_t _max_depth ) {
|
||||
FC_ASSERT( _max_depth > 0 );
|
||||
fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::pack( s, v, _max_depth - 1 );
|
||||
}
|
||||
template<typename Stream, typename T>
|
||||
inline void unpack( Stream& s, T& v, uint32_t _max_depth )
|
||||
void unpack( Stream& s, T& v, uint32_t _max_depth )
|
||||
{ try {
|
||||
FC_ASSERT( _max_depth > 0 );
|
||||
fc::raw::detail::if_reflected< typename fc::reflector<T>::is_defined >::unpack( s, v, _max_depth - 1 );
|
||||
|
|
|
|||
|
|
@ -83,13 +83,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;
|
||||
|
|
@ -119,7 +119,7 @@ namespace fc {
|
|||
|
||||
}
|
||||
} // namespace fc
|
||||
FC_REFLECT_TYPENAME( fc::ip::address )
|
||||
FC_REFLECT_EMPTY( fc::ip::address )
|
||||
FC_REFLECT_TYPENAME( fc::ip::endpoint )
|
||||
namespace std
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue