mapbox / geojson-cpp

A C++14 library for converting GeoJSON into geometry.hpp representation
ISC License
66 stars 27 forks source link

Build error with MSVC 2019 #49

Open JD31 opened 2 years ago

JD31 commented 2 years ago

When building with MSVC 2019 I have the following error:

geojson_value_impl.hpp:30:10: No matching member function for call to 'is'

variant.hpp:643:25: candidate template ignored: requirement 'detail::direct_type<std::vector<mapbox::feature::value, std::allocator<mapbox::feature::value>>, mapbox::feature::null_value_t, bool, unsigned long long, long long, double, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<std::vector<mapbox::feature::value, std::allocator<mapbox::feature::value>>>, std::shared_ptr<std::unordered_map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, mapbox::feature::value, std::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, mapbox::feature::value>>>>>::index != detail::invalid_value' was not satisfied [with T = std::vector<mapbox::feature::value>]

variant.hpp:650:25: candidate template ignored: requirement 'detail::direct_type<mapbox::util::recursive_wrapper<std::vector<mapbox::feature::value, std::allocator<mapbox::feature::value>>>, mapbox::feature::null_value_t, bool, unsigned long long, long long, double, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<std::vector<mapbox::feature::value, std::allocator<mapbox::feature::value>>>, std::shared_ptr<std::unordered_map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, mapbox::feature::value, std::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, mapbox::feature::value>>>>>::index != detail::invalid_value' was not satisfied [with T = std::vector<mapbox::feature::value>]