Mercurial > repos > zzhou > spp_phantompeak
diff spp/src/pc.h @ 15:e689b83b0257 draft
Uploaded
author | zzhou |
---|---|
date | Tue, 27 Nov 2012 16:15:21 -0500 |
parents | ce08b0efa3fd |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spp/src/pc.h Tue Nov 27 16:15:21 2012 -0500 @@ -0,0 +1,20 @@ +#ifndef PC_H +#define PC_H 1 +#include <functional> +//#include <hash_map.h> +#include <ext/hash_set> +#include <ext/hash_map> + + +namespace __gnu_cxx +{ + template<> struct hash< std::string > + { + size_t operator()( const std::string& x ) const + { + return hash< const char* >()( x.c_str() ); + } + }; +} + +#endif