diff --git a/3rdparty/picojson/picojson.h b/3rdparty/picojson/picojson.h index 5ecffa9a8f..69d3045ea5 100644 --- a/3rdparty/picojson/picojson.h +++ b/3rdparty/picojson/picojson.h @@ -273,6 +273,10 @@ class object_with_ordered_keys : private std::unordered_map return std::unordered_map::operator[](key); } + const value& operator[](const std::string& key) const { + return std::unordered_map::at(key); + } + void clear() { std::unordered_map::clear(); ordered_keys_.clear();