You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wanted to report that I compiled a project that is based on nlohmann::json v3.10.4 and it used -Wshadow with the GNU g++ v7.5.
During compilation I see
json/single_include/nlohmann/json.hpp:18813:5: warning: declaration of 'count' shadows a member of 'nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>' [-Wshadow]
{
^
json/single_include/nlohmann/json.hpp:22078:15: note: shadowed declaration is here
size_type count(KeyT&& key) const
^~~~~
Activity
Fix: Warning for shadowed variables (#3188) (#3193)