Open mohitmv opened 5 years ago
That's not a PR it's a diff in your repo. You need to submit a PR and sign the Dropbox CLA before I could consider merging anything. https://opensource.dropbox.com/cla/ . That being said, per the note in the README this repo isn't actively maintained anymore, and hasn't been tested with newer compilers, so you may be best off just fixing things in your own repo as necessary.
Regarding the actual issue, it seems to me that the hiding here is semi-intentional. It doesn't make sense for a JsonArray to have operator[] with a string key, but to populate the vtable it has to have the default implementation which returns null. It doesn't seem obvious to me how to best express that in the code, but suppressing the warning seems like it might be the simplest option.
Please review and merge this pull request : https://github.com/random-basad/json11/commit/7a03087db4898e50d41d06e1fd7945c92a109bd4
Thanks. @artwyman