summaryrefslogtreecommitdiff
path: root/stlport/systemstl/hash_map
diff options
context:
space:
mode:
Diffstat (limited to 'stlport/systemstl/hash_map')
-rw-r--r--stlport/systemstl/hash_map22
1 files changed, 20 insertions, 2 deletions
diff --git a/stlport/systemstl/hash_map b/stlport/systemstl/hash_map
index 089d5d5b0cb0..0ce5668d51e7 100644
--- a/stlport/systemstl/hash_map
+++ b/stlport/systemstl/hash_map
@@ -2,9 +2,9 @@
*
* $RCSfile: hash_map,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-09-08 16:34:02 $
+ * last change: $Author: vg $ $Date: 2005-02-24 14:47:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,24 @@
#include <ext/hash_map>
#ifdef GCC
+namespace __gnu_cxx
+{
+ template<> struct hash < std::string >
+ {
+ size_t operator()(const std::string & x) const
+ {
+ return hash< const char* >()(x.c_str());
+ }
+ };
+
+ template<> struct hash< long long int >
+ {
+ size_t operator()(long long int __x) const
+ {
+ return __x;
+ }
+ };
+}
namespace std
{
using __gnu_cxx::hash;