add std::hash specialization for mapnik::value

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

View File

@ -76,4 +76,17 @@ std::size_t mapnik_hash_value(T const& val)
} // namespace mapnik
// support for std::unordered containers
namespace std
{
template <>
struct hash<mapnik::value>
{
size_t operator()(const mapnik::value& val) const
{
return mapnik::mapnik_hash_value(val);
}
};
#endif // MAPNIK_VALUE_HASH_HPP