uint128.hpp: Reflect uint128
This commit is contained in:
parent
5dabe6ba2c
commit
3bf3b0c9b4
1 changed files with 5 additions and 4 deletions
|
|
@ -102,10 +102,9 @@ namespace fc
|
|||
|
||||
static void full_product( const uint128& a, const uint128& b, uint128& result_hi, uint128& result_lo );
|
||||
|
||||
private:
|
||||
uint64_t hi;
|
||||
uint64_t lo;
|
||||
|
||||
// fields must be public for serialization
|
||||
uint64_t hi;
|
||||
uint64_t lo;
|
||||
};
|
||||
static_assert( sizeof(uint128) == 2*sizeof(uint64_t), "validate packing assumptions" );
|
||||
|
||||
|
|
@ -139,6 +138,8 @@ namespace std
|
|||
};
|
||||
}
|
||||
|
||||
FC_REFLECT( fc::uint128_t, (hi)(lo) )
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif ///_MSC_VER
|
||||
|
|
|
|||
Loading…
Reference in a new issue