fix c++11 hash