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:
click
2010-06-14 02:43:18 +02:00
parent b232204264
commit 43f527b94f

View File

@@ -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