summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:10:07 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:10:07 +0000
commit12f187c555300fd7dc2873b604bd70dc11583d80 (patch)
treed20ea261c978486a6f1b597041e1a89edde5961d /utils
parent96f15deb390289ff826b6cc168be7a2b75652996 (diff)
get_default mapped_type
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@517 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'utils')
-rwxr-xr-xutils/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hash.h b/utils/hash.h
index 5d7f2010..c241d139 100755
--- a/utils/hash.h
+++ b/utils/hash.h
@@ -53,7 +53,7 @@ struct murmur_hash_array
// adds default val to table if key wasn't found, returns ref to val
template <class H,class K>
-typename H::data_type & get_default(H &ht,K const& k,typename H::data_type const& v) {
+typename H::mapped_type & get_default(H &ht,K const& k,typename H::mapped_type const& v) {
return const_cast<typename H::data_type &>(ht.insert(typename H::value_type(k,v)).first->second);
}