All pastes #398192 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-17 01:04 UTC
rendered paste body
using namespace std;
using namespace __gnu_cxx;
  
template<>
struct __gnu_cxx::hash<const off64_t> {
  size_t operator() (const off64_t o) const {
    return(o&0xFF);
  };
};

hash_map<const off64_t, char, hash<const off64_t>, eq_offset> block_map;

with this error:

server.cpp:58: error: specialization of 'template<class _Key> struct __gnu_cxx::hash' in different namespace

which is the __gnu_cxx::hash template specialization.