Browse Source

Compile fix.

cl-refactor
Gav Wood 10 years ago
parent
commit
82e86eba1b
  1. 7
      libethereum/BlockChain.h

7
libethereum/BlockChain.h

@ -42,10 +42,13 @@
#include "BlockQueue.h" #include "BlockQueue.h"
namespace ldb = leveldb; namespace ldb = leveldb;
template <> struct std::hash<std::pair<dev::h256, unsigned>> namespace std
{ {
size_t operator()(const pair<dev::h256, unsigned> &x ) const { return std::hash<dev::h256>()(x.first) ^ std::hash<unsigned>()(x.second); } template <> struct hash<pair<dev::h256, unsigned>>
{
size_t operator()(pair<dev::h256, unsigned> const& _x) const { return hash<dev::h256>()(_x.first) ^ hash<unsigned>()(_x.second); }
}; };
}
namespace dev namespace dev
{ {

Loading…
Cancel
Save