mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-23 00:07:58 +02:00
test get(key, default)
This commit is contained in:
@@ -1037,7 +1037,7 @@ Value Value::get(char const* key, Value const& defaultValue) const
|
||||
}
|
||||
Value Value::get(std::string const& key, Value const& defaultValue) const
|
||||
{
|
||||
return get(key.c_str(), defaultValue);
|
||||
return get(key.data(), key.data() + key.length(), defaultValue);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user