removed ext/hash_fun.h
authorStefan Schubert <schubi@suse.de>
Tue, 13 Nov 2007 14:26:47 +0000 (14:26 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 13 Nov 2007 14:26:47 +0000 (14:26 +0000)
zypp/capability/CapabilityImpl.cc
zypp/capability/VersionedCap.cc

index 46cfff8..f2518d7 100644 (file)
  *
 */
 #include <iostream>
-#include <ext/hash_fun.h>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/Regex.h"
 #include "zypp/base/Exception.h"
+#include "zypp/base/Hash.h"
 #include "zypp/capability/CapabilityImpl.h"
 #include "zypp/capability/Capabilities.h"
 
@@ -49,7 +49,7 @@ namespace zypp
 
     std::size_t CapabilityImpl::hash() const
     {
-      std::size_t ret = __gnu_cxx::hash<const char*>()( encode().c_str() );
+      std::size_t ret = __gnu_cxx::__stl_hash_string( encode().c_str() );
       return ret;
     }
 
index a048943..e86aee1 100644 (file)
@@ -10,7 +10,7 @@
  *
 */
 #include <iostream>
-#include <ext/hash_fun.h>
+#include "zypp/base/Hash.h"
 #include "zypp/capability/VersionedCap.h"
 
 using namespace std;