update reflect
This commit is contained in:
parent
2030623243
commit
cf37cd776b
2 changed files with 13 additions and 0 deletions
|
|
@ -322,6 +322,15 @@ namespace fc
|
|||
vars[i] = variant(t[i]);
|
||||
v = vars;
|
||||
}
|
||||
/** @ingroup Serializable */
|
||||
template<typename A, typename B>
|
||||
void to_variant( const std::pair<A,B>& t, variant& v )
|
||||
{
|
||||
std::vector<variant> vars(2);
|
||||
vars[0] = variant(t.first);
|
||||
vars[1] = variant(t.second);
|
||||
v = vars;
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ char* ripemd160::data()const { return (char*)&_hash[0]; }
|
|||
|
||||
|
||||
struct ripemd160::encoder::impl {
|
||||
impl()
|
||||
{
|
||||
memset( (char*)&ctx, 0, sizeof(ctx) );
|
||||
}
|
||||
RIPEMD160_CTX ctx;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue