std::hash supprot for sha256
This commit is contained in:
parent
fa85f98844
commit
52a4a46cca
1 changed files with 13 additions and 0 deletions
|
|
@ -81,3 +81,16 @@ class sha256
|
|||
void from_variant( const variant& v, sha256& bi );
|
||||
|
||||
} // fc
|
||||
namespace std
|
||||
{
|
||||
template<typename T> struct hash;
|
||||
|
||||
template<>
|
||||
struct hash<fc::sha256>
|
||||
{
|
||||
size_t operator()( const fc::sha256& s )const
|
||||
{
|
||||
return *((size_t*)&s);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue