diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 604dd8669..c4c37b446 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -990,4 +990,18 @@ inline bool value::is_null() const } // namespace mapnik +// support for std::unordered_xxx +namespace std +{ +template <> +struct hash +{ + size_t operator()(mapnik::value const& val) const + { + return mapnik::mapnik_hash_value(val); + } +}; + +} + #endif // MAPNIK_VALUE_HPP