danielaparker / jsoncons

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
https://danielaparker.github.io/jsoncons
Other
699 stars 158 forks source link

Update json_object.hpp #459

Closed MonkeybreadSoftware closed 11 months ago

MonkeybreadSoftware commented 11 months ago

Shadowed name fix.

I got annoyed with all these messages about shadowed names here.

jsoncons/json_object.hpp:41:9: warning: declaration of 'name' shadows a member of 'jsoncons::index_key_value<jsoncons::basic_json<char, jsoncons::sorted_policy, std::allocator > >' [-Wshadow] index_key_value(key_type&& name, int64_t index, Args&& ... args) ^~~~~~~ jsoncons/json_object.hpp:36:18: note: shadowed declaration is here key_type name;