using namespace std; using namespace __gnu_cxx; template<> struct __gnu_cxx::hash { size_t operator() (const off64_t o) const { return(o&0xFF); }; }; hash_map, eq_offset> block_map; with this error: server.cpp:58: error: specialization of 'template struct __gnu_cxx::hash' in different namespace which is the __gnu_cxx::hash template specialization.