diff --git a/include/fc/sha1.hpp b/include/fc/sha1.hpp index 00279bc..e95ff15 100644 --- a/include/fc/sha1.hpp +++ b/include/fc/sha1.hpp @@ -19,6 +19,9 @@ namespace fc { static sha1 hash( const char* d, uint32_t dlen ); static sha1 hash( const fc::string& ); + template + static sha1 hash( const T& t ) { sha1::encoder e; e << t; return e.result(); } + class encoder { public: encoder();