Merge branch 'master' into geometry-refactor
This commit is contained in:
commit
dc88582b4d
3 changed files with 4 additions and 4 deletions
2
deps/mapbox/variant
vendored
2
deps/mapbox/variant
vendored
|
@ -1 +1 @@
|
|||
Subproject commit b5728ad76e1402c130a9330aa44b6f4b655b13b4
|
||||
Subproject commit c511b2f34d966c09e02a1b833db33a9a1f9b2196
|
|
@ -154,7 +154,7 @@ public:
|
|||
|
||||
inline bool has_key(context_type::key_type const& key) const
|
||||
{
|
||||
return (ctx_->mapping_.find(key) != ctx_->mapping_.end());
|
||||
return (ctx_->mapping_.count(key) == 1);
|
||||
}
|
||||
|
||||
inline value_type const& get(context_type::key_type const& key) const
|
||||
|
|
|
@ -673,7 +673,7 @@ struct convert<std::string>
|
|||
|
||||
std::string operator()(value_null const&) const
|
||||
{
|
||||
return std::string();
|
||||
return std::string("null");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -708,7 +708,7 @@ struct to_unicode_impl
|
|||
|
||||
value_unicode_string operator()(value_null const&) const
|
||||
{
|
||||
return value_unicode_string();
|
||||
return value_unicode_string("null");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue