We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dee1a9 commit 204d30eCopy full SHA for 204d30e
include/mapnik/value_hash.hpp
@@ -54,11 +54,6 @@ struct value_hasher
54
return static_cast<std::size_t>(val.hashCode());
55
}
56
57
- std::size_t operator()(value_integer val) const
58
- {
59
- return static_cast<std::size_t>(val);
60
- }
61
-
62
template <class T>
63
std::size_t operator()(T const& val) const
64
{
@@ -72,10 +67,7 @@ struct value_hasher
72
67
template <typename T>
73
68
std::size_t mapnik_hash_value(T const& val)
74
69
75
- std::size_t seed = 0;
76
- detail::hash_combine(seed, util::apply_visitor(detail::value_hasher(), val));
77
- detail::hash_combine(seed, val.which());
78
- return seed;
70
+ return util::apply_visitor(detail::value_hasher(), val);
79
71
80
81
} // namespace mapnik
0 commit comments