mirror of
https://github.com/CloudCompare/PoissonRecon.git
synced 2026-08-29 16:40:28 +08:00
30 lines
708 B
C++
30 lines
708 B
C++
#ifndef HASH_INCLUDED
|
|
#define HASH_INCLUDED
|
|
#ifdef WIN32
|
|
#include <hash_map>
|
|
using stdext::hash_map;
|
|
#else // !WIN32
|
|
#include <ext/hash_map>
|
|
using namespace __gnu_cxx;
|
|
|
|
namespace __gnu_cxx
|
|
{
|
|
template<> struct hash<long long> {
|
|
size_t operator()(long long __x) const { return __x; }
|
|
};
|
|
template<> struct hash<const long long> {
|
|
size_t operator()(const long long __x) const { return __x; }
|
|
};
|
|
|
|
|
|
template<> struct hash<unsigned long long> {
|
|
size_t operator()(unsigned long long __x) const { return __x; }
|
|
};
|
|
template<> struct hash<const unsigned long long> {
|
|
size_t operator()(const unsigned long long __x) const { return __x; }
|
|
};
|
|
}
|
|
#endif // WIN32
|
|
#endif // HASH_INCLUDED
|
|
|