add std::hash specialization for mapnik::value

This commit is contained in:
artemp 2015-06-18 10:10:26 +02:00
parent 4fe3c87a84
commit 022c2f7255

View File

@ -990,4 +990,18 @@ inline bool value::is_null() const
} // namespace mapnik
// support for std::unordered_xxx
namespace std
{
template <>
struct hash<mapnik::value>
{
size_t operator()(mapnik::value const& val) const
{
return mapnik::mapnik_hash_value(val);
}
};
}
#endif // MAPNIK_VALUE_HPP