projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17921b8
)
changing string hash function to use the gnu namespace
author
Dejan Jovanović
<dejan@cs.nyu.edu>
Sat, 23 Mar 2013 04:27:42 +0000
(
00:27
-0400)
committer
Dejan Jovanović
<dejan@cs.nyu.edu>
Sat, 23 Mar 2013 04:27:42 +0000
(
00:27
-0400)
due to namesapce resolution std namespace was used instead, which hashes the string pointers leading to mayhem
src/util/hash.h
patch
|
blob
|
history
diff --git
a/src/util/hash.h
b/src/util/hash.h
index 4d4094143d6386da173d2e2d5bffab171fa49b18..913358512cc402f3933622c3c5a5d7bead7405ac 100644
(file)
--- a/
src/util/hash.h
+++ b/
src/util/hash.h
@@
-48,7
+48,7
@@
namespace CVC4 {
struct StringHashFunction {
size_t operator()(const std::string& str) const {
- return
std
::hash<const char*>()(str.c_str());
+ return
__gnu_cxx
::hash<const char*>()(str.c_str());
}
};/* struct StringHashFunction */