diff --git a/CMakeLists.txt b/CMakeLists.txt index 36b2184..9bf4c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,8 +92,9 @@ set( fc_sources src/crypto/crc.cpp src/crypto/city.cpp src/crypto/base32.cpp - src/crypto/base64.cpp + src/crypto/base36.cpp src/crypto/base58.cpp + src/crypto/base64.cpp src/crypto/bigint.cpp src/crypto/hex.cpp src/crypto/sha1.cpp diff --git a/include/fc/array.hpp b/include/fc/array.hpp index 2a3189f..cd1f312 100644 --- a/include/fc/array.hpp +++ b/include/fc/array.hpp @@ -53,4 +53,21 @@ namespace fc { else memset( &bi, char(0), sizeof(bi) ); } + + +} + +#include +namespace std +{ + template struct hash; + + template + struct hash > + { + size_t operator()( const fc::array& e )const + { + return fc::city_hash64( (char*)&e, sizeof(e) ); + } + }; }