-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic_json has no member "parse" #1731
Comments
See https://nlohmann.github.io/json/classnlohmann_1_1basic__json_a265a473e939184aa42655c9ccdf34e58.html#a265a473e939184aa42655c9ccdf34e58 for an example how to use the static parse method. |
It seems just an error from Visual Studio IntelliSense, not an actual compiler. |
Visual Studio 2019 (16.2.5) suffers from the same IntelliSense bug, hoping for a fix soon. |
As the issue is not related to the library, but rather IntelliSense, I'm closing the issue. |
I'm absolutely floored by the fact that this simple compiler switch actually makes IntelliSense play nicely with complex template code. It's much more pleasant than what I was doing before (stubbing the entire API inside of |
Copied the json.hpp file (v3.7.0) from release into my C++ project, the IDE (VS2019) instantly reports problems with 2 issues:
https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp#L22516
And one error I am a little bit less concerned about because I don't need it to parse a json:
https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp#L22495
Visual Studio 2019 (v142)
Also tried Visual Studio 2017 (v141) but that even gave me more issues.
Did you use a released version of the library or the version from the
develop
branch?If you experience a compilation error: can you compile and run the unit tests?
FYI: I am a C++ noob
The text was updated successfully, but these errors were encountered: