diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-18 13:16:03 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-18 13:16:03 +0200 |
commit | 22d2f3ce5bd3fae2db9744eb66f7b8c3996265d6 (patch) | |
tree | 5cebab1bd3a0e77b108a19a786fe541cd7ce546c /utils/hash.h | |
parent | 78a0ee61c2d2d846306b60a8ac862a2d649bcf59 (diff) | |
parent | a70d6d3ed83a32d3cdf4bcb36a087426a4ed2c31 (diff) |
Merge remote-tracking branch 'upstream/master'
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); } |