mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Fix compile-errors on older versions of GCC (missing definitions - thanks to lynx3d for the heads up)
(users are adviced to upgrade to a MORE RECENT version of GCC that supports the standardized tr1::unordered_map functionality though) --HG-- branch : trunk
This commit is contained in:
@@ -62,7 +62,13 @@ namespace __gnu_cxx
|
||||
{
|
||||
size_t operator()(T * const &__x) const { return (size_t)__x; }
|
||||
};
|
||||
|
||||
template<> struct hash<std::string>
|
||||
{
|
||||
size_t operator()(const std::string &__x) const
|
||||
{
|
||||
return hash<const char *>()(__x.c_str());
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user