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:
1 parent
b232204264
commit
43f527b94f
1 file changed
+7
-1
@@ -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