Closed Algunenano closed 6 years ago
Seems to fail in OSX due to get
not being available.
../test/vector_tile_pbf.cpp:631:35: error: no matching member function for call to 'get'
CHECK_NOTHROW(f_ptr->get("x").get<long int>());
Any idea why? I could either ifndef
it for OSX or change the test to use some kind of visitor but it's a PITA.
In the test the
x
value is returned asbool(false)
instead ofint(0)
which will throw when we force a.get<long int>())
.I've modified both the comparison and the hash functions of the
values_container
to avoid collisions for mapnik::value's with the same value (as inoperator==
comparison) but different types (pbf_tag_type
for protozero). Fixes https://github.com/mapbox/mapnik-vector-tile/issues/280