diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-05-16 07:09:16 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-05-16 07:09:16 -0400 |
commit | a448faf30fa46c006b1d38c6aee64a7aad29ac5e (patch) | |
tree | bdfe7c401de04433e80680e350b05ad4d37b7e59 /utils/hash.h | |
parent | 0f1e696690b18259acd79c3469d00a72aca00161 (diff) |
clean up
Diffstat (limited to 'utils/hash.h')
-rw-r--r-- | utils/hash.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/hash.h b/utils/hash.h index 2290bc34..31457430 100644 --- a/utils/hash.h +++ b/utils/hash.h @@ -5,7 +5,10 @@ #include "murmur_hash.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + #ifdef HAVE_SPARSEHASH # include <google/dense_hash_map> # include <google/dense_hash_set> @@ -130,8 +133,7 @@ bool maybe_add(H &ht,K const& k,typename H::mapped_type const& v) { // ht[k] must not exist (yet) template <class H,class K> void add(H &ht,K const& k,typename H::mapped_type const& v) { - bool fresh=maybe_add(ht,k,v); - assert(fresh); + maybe_add(ht,k,v); } |